when proxying to proxy, slash is removed from protocol
Created by: tu1ly
hi,
target =
protocol: 'http:',
host: 'sometarget.io:80',
port: '80',
hostname: 'sometarget.io',
hash: null,
pathname: 'http://www.google.com',
path: 'http://www.google.com',
proxy.web(req, res, { target, toProxy: true, prependPath: true})
path: 'http://www.google.com' becomes path: 'http:/www.google.com/' in https://github.com/nodejitsu/node-http-proxy/blob/master/lib/http-proxy/common.js#L153 .
Peter