Skip to content

Proxy crashes when header "Host" is missing #591

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

Open
SkeLLLa opened this issue Feb 26, 2014 · 1 comment
Open

Proxy crashes when header "Host" is missing #591

SkeLLLa opened this issue Feb 26, 2014 · 1 comment

Comments

@SkeLLLa
Copy link

SkeLLLa commented Feb 26, 2014

.../lib/node_modules/http-proxy/lib/http-proxy/common.js:78
  var res = req.headers.host.match(/:(\d+)/);
                             ^
TypeError: Cannot call method 'match' of undefined
    at Object.common.getPort (.../lib/node_modules/http-proxy/lib/http-proxy/common.js:78:30)
    at Array.XHeaders [as 2] (.../lib/node_modules/http-proxy/lib/http-proxy/passes/web-incoming.js:68:21)
    at ProxyServer.<anonymous> (.../lib/node_modules/http-proxy/lib/http-proxy/index.js:83:21)
    at _.extend._tryHandleConnections 
@CarsonF
Copy link

CarsonF commented Mar 11, 2014

I'm experiencing the same thing

jcrugzz added a commit that referenced this issue Mar 11, 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

2 participants