We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can someone with understanding of https and streams explain me whats going on here?
node-mitm-proxy/proxy.js
Lines 140 to 159 in 864c252
The text was updated successfully, but these errors were encountered:
To start with, it could be written as:
server.addListener('upgrade', function(req, socket, upgradeHead) { var proxy = net.createConnection(that.options.mitm_port, 'localhost'); proxy.on('connect', function() { socket.write( "HTTP/1.0 200 Connection established\r\nProxy-agent: Netscape-Proxy/1.1\r\n\r\n"); proxy.pipe(socket); socket.pipe(proxy); }); });
or am I missing something?
Sorry, something went wrong.
No branches or pull requests
Can someone with understanding of https and streams explain me whats going on here?
node-mitm-proxy/proxy.js
Lines 140 to 159 in 864c252
The text was updated successfully, but these errors were encountered: