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

HTTP/1.0 requests returns HTTP 500 #109

Closed
runesoerensen opened this issue Dec 14, 2011 · 4 comments
Closed

HTTP/1.0 requests returns HTTP 500 #109

runesoerensen opened this issue Dec 14, 2011 · 4 comments
Labels

Comments

@runesoerensen
Copy link

When issuing a HTTP/1.0 request to an IIS app using the iisnode module the server returns HTTP 500. I'm wondering whether that's the intended/expected behavior? It works fine when running the node app with node.exe directly.

In case it's not it can easily be reproduced with for instance curl http://localhost/foo.js --http1.0

@tjanczuk
Copy link
Owner

tjanczuk commented Jan 3, 2012

Following http://www.ietf.org/rfc/rfc2145.txt, the fix is for iisnode to relax the validation of the HTTP version number on the HTTP response generated by node.js. This allows node.js applications to send 1.1 responses to 1.0 requests.

@tjanczuk
Copy link
Owner

tjanczuk commented Jan 4, 2012

Part of this fix is to also rely on connection closing to detect the end of the response entity body for responses to HTTP 1.0 requests.

@runesoerensen
Copy link
Author

This works great. Thanks a lot!

@tjanczuk
Copy link
Owner

tjanczuk commented Jan 4, 2012

Thanks for reporting the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants