Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

In case of inputStream, invoke callback on response event #320

Merged
merged 1 commit into from Aug 20, 2012

Conversation

pofallon
Copy link
Contributor

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!

andrerod pushed a commit that referenced this pull request Aug 20, 2012
In case of inputStream, invoke callback on response event
@andrerod andrerod merged commit ebf952e into Azure:dev Aug 20, 2012
@andrerod
Copy link

LGTM thanks paul.

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

Successfully merging this pull request may close these issues.

None yet

2 participants