Leo Tian

Results 5 issues of Leo Tian

既然已经使用proxyRes.pipe(res)了,为什么还要在前面加个res.writeHead(proxyRes.statusCode);呢?

Click on the logo to jump to the home page

when i use ![image](https://user-images.githubusercontent.com/10192886/43131268-39778eae-8f6b-11e8-813e-88af00990afc.png) error // hotMiddleware2.publish({ action: 'reload' }) ![image](https://user-images.githubusercontent.com/10192886/43131260-3092c1d2-8f6b-11e8-8494-cc55db6bf203.png)

我想请求一个地址例如 https://xxx.abc.com/ckd/ 然后在responseInterceptor把我透明传输本地的一个响应过来 ``` const mitmproxyConfig = { sslConnectInterceptor: (req, cltSocket, head) => { console.log('head', head) return true }, requestInterceptor: (rOptions, req, res, ssl, next) => { console.log(`正在访问:${rOptions.protocol}//${rOptions.hostname}:${rOptions.port}`) console.log('cookie:', rOptions.headers.cookie)...