LearnBoost/socket.io — pull request #980 by doozr (2012-08-06 13:19:22+00:00)
Title: Always set the HTTP response in case an error should be returned to the client

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.