Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when proxying to proxy, slash is removed from protocol #738

Closed
tu1ly opened this issue Nov 19, 2014 · 0 comments
Closed

when proxying to proxy, slash is removed from protocol #738

tu1ly opened this issue Nov 19, 2014 · 0 comments

Comments

@tu1ly
Copy link

tu1ly commented Nov 19, 2014

hi,

  target =
    protocol: 'http:',
    host: 'sometarget.io:80',
    port: '80',
    hostname: 'sometarget.io',
    hash: null,
    pathname: 'http:https://www.google.com',
    path: 'http:https://www.google.com',

  proxy.web(req, res, { target, toProxy: true, prependPath: true})

path: 'http:https://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

tu1ly pushed a commit to apiaryio/node-http-proxy that referenced this issue Nov 19, 2014
tu1ly pushed a commit to apiaryio/node-http-proxy that referenced this issue Nov 19, 2014
@jcrugzz jcrugzz closed this as completed in 9c0b869 Dec 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant