-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Ensure the first bit of body directly after the headers is emitted into the stream #68
Conversation
…ers not emitted from the stream but from the response never making it into the stream
@@ -156,7 +156,7 @@ public function handleData($data) | |||
|
|||
$this->emit('response', array($response, $this)); | |||
|
|||
$response->emit('data', array($bodyChunk, $response)); | |||
$this->stream->emit('data', array($bodyChunk, $response)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$response
can / should be omitted here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check you're right it should be omitted there, the data will flow through the stream to the response and the response will emit it again when data comes from the stream 👍
… data flowed through the stream into the response: reactphp#68 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Fixes #67