WindowsAzure/azure-sdk-for-node — pull request #320 by pofallon (2012-08-19 01:21:24+00:00)
Title: In case of inputStream, invoke callback on response event

A suggested improvement for the fix in #251. In the case of an inputStream, invoke callback on the 'response' event instead of waiting for the entire response to arrive. In this case, the callback will contain the response but not the responseBody. This should be ok, however, since the body is being sent to the stream. Also, there was already an 'if' statement in the callback to skip assigning the body when an inputStream existed (I assume this 'if' statement is no longer necessary so I removed it).

The existing fix for #251 helps, but does not solve the entire problem for me. However since #251 added 'request', it made it easier to act on the arrival of the response prior to the arrival of the entire body.

Thanks!