nodejitsu/node-http-proxy — pull request #251 by ryanstevens (2012-05-22 19:43:49+00:00)
Title: x-forwarded-proto has wrong value

The ternary was evaluating truthy for "," + req.connection.pair which is always true because its always a non empty string. Wrapped actual condition to properly concatenate the product of the ternary. let me know if you prefer the style (req.connection.pair ? 'https' : 'http')

https://github.com/nodejitsu/node-http-proxy/issues/250