Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
better implementation of headers handling
- fixes an edge case and is more logical - remove trimming of headers which is not according to psr-7 - fix '0' problem for response reason - improve tests
- Loading branch information
Showing
6 changed files
with
226 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
I haven't dug in too far, but this change (
$body != ''
from$body !== null
) has me getting back null because the StreamHandler creates a$sink
, but doesn't drain the stream to it until after the response is created (so, when the response is created, casting the stream to a string results in an empty string).