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

Always set the HTTP response in case an error should be returned to the client #980

Merged
merged 1 commit into from Aug 6, 2012
Merged

Always set the HTTP response in case an error should be returned to the client #980

merged 1 commit into from Aug 6, 2012

Conversation

doozr
Copy link
Contributor

@doozr doozr commented Aug 6, 2012

The this.response member in the HTTP transport class is only set if the request is a GET. This seems to be because it expects a POST to never return anything to the client. However, in case of error (e.g. JSON parse error), an error message is sent to the client. If the response member is not set, it causes a hard crash when the response body is written.

rauchg added a commit that referenced this pull request Aug 6, 2012
Always set the HTTP response in case an error should be returned to the client
@rauchg rauchg merged commit 46227e7 into socketio:master Aug 6, 2012
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

Successfully merging this pull request may close these issues.

None yet

2 participants