x-forwarded-proto incorrectly set to 'http' on node 0.12.0
Created by: jphaas
I upgraded node to 0.12.0 and it looks like the https detection logic isn't working any more.
It looks like the issue is on line 70 of /lib/http-proxy/passes/web-incoming.js: req.connection.pair is evaluating to undefined even though it's an https connection.
I'm creating a server like so:
https_server = https.createServer my_https_options, (req, res) ->
proxy.web req, res, {
xfwd: true
target: {host: 'localhost', port: configuration.port}
}
https_server.listen configuration.ssl_port