[fix] x-forwarded-proto sets properly 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')
[fix] x-forwarded-proto sets properly
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

andrewpmartinez/node-http-proxy,kaven276/node-http-proxy,seomoz/node-http-proxy,InstantWebP2P/node-httpp-proxy,meteor/node-http-proxy,tyrchen/node-http-proxy,pouc/node-http-proxy,lschans/node-http-proxy,akiellor/node-http-proxy,lowtalker/node-http-proxy,taenaive/node-http-proxy,1stvamp/node-http-proxy,scottleedavis/node-http-proxy,Ryan257/node-http-proxy,ably-forks/node-http-proxy,strongloop-forks/http-proxy,sberan/node-http-proxy,pantheon-systems/node-http-proxy,tjmehta/node-http-proxy,brpvieira/node-http-proxy-modified,rasata/node-http-proxy,MiLk/node-http-proxy,TopShelfSolutions/node-http-proxy,goldbergjeffrey/node-http-proxy,xebitstudios/node-http-proxy,clakech/node-http-proxy,caywood/node-http-proxy,justsml/node-http-proxy,taenaive/node-http-proxy,lsm/node-http-proxy,apiaryio/node-http-proxy,vggg/node-http-proxy,chaitin/node-http-proxy,stuartpb/node-http-proxy,tarunc/node-http-proxy,malko/node-http-proxy,rstudio/node-http-proxy