-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
http client psr 18 example not working #11996
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
Labels
Comments
fabpot
added a commit
to symfony/symfony
that referenced
this issue
Jul 24, 2019
…-grekas) This PR was merged into the 4.3 branch. Discussion ---------- [HttpClient] rewind stream when using Psr18Client | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony/symfony-docs#11996 | License | MIT | Doc PR | - This is not a bug fix technically but just how PSR-7 works. I'm glad we did not make it a first-class thing in Symfony. This makes it a bit more practicable if it can be... Commits ------- 7f4362b [HttpClient] rewind stream when using Psr18Client
symfony-splitter
pushed a commit
to symfony/http-client
that referenced
this issue
Jul 24, 2019
…-grekas) This PR was merged into the 4.3 branch. Discussion ---------- [HttpClient] rewind stream when using Psr18Client | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony/symfony-docs#11996 | License | MIT | Doc PR | - This is not a bug fix technically but just how PSR-7 works. I'm glad we did not make it a first-class thing in Symfony. This makes it a bit more practicable if it can be... Commits ------- 7f4362bd46 [HttpClient] rewind stream when using Psr18Client
This will be fixed at the code level once symfony/symfony#32689 is tagged (in one week max) |
sadafrangian3
pushed a commit
to sadafrangian3/Dependency-Injection-http-client
that referenced
this issue
Nov 2, 2022
…-grekas) This PR was merged into the 4.3 branch. Discussion ---------- [HttpClient] rewind stream when using Psr18Client | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony/symfony-docs#11996 | License | MIT | Doc PR | - This is not a bug fix technically but just how PSR-7 works. I'm glad we did not make it a first-class thing in Symfony. This makes it a bit more practicable if it can be... Commits ------- 7f4362bd46 [HttpClient] rewind stream when using Psr18Client
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/symfony/symfony-docs/blob/4.3/components/http_client.rst#psr-18
on full symfony project from symfony new --full project_name and after installing requirements
does not work, returns empty content
if I uncomment line (added by me, not present in docs):
it also works
and If i switch http driver to guzzle it also works:
so it is problem with symfony's http client,
most likely there is some issue with rewind of stream before returning contents
The text was updated successfully, but these errors were encountered: