nodejs-proxy icon indicating copy to clipboard operation
nodejs-proxy copied to clipboard

port handling in incoming request

Open jeromeetienne opened this issue 15 years ago • 1 comments

in parsing the incoming request, there is a little glitch in the port handling

http://github.com/pkrumins/nodejs-proxy/blob/master/proxy.js#L86

here in fact the port may be in the header 'host'

for reference http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html Host = "Host" ":" host [ ":" port ] ; Section 3.2.2.

jeromeetienne avatar Aug 18 '10 15:08 jeromeetienne

i made a patch to fix it. http://gist.github.com/537719

jeromeetienne avatar Aug 19 '10 12:08 jeromeetienne