Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpClient] on redirections don't send content related request headers #45906

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

Merged
merged 1 commit into from
Apr 1, 2022

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Apr 1, 2022

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #45709, #45735
License MIT
Doc PR

@xabbuh xabbuh added this to the 4.4 milestone Apr 1, 2022
@xabbuh xabbuh force-pushed the issue-45709-45735 branch 2 times, most recently from 8743696 to 7804522 Compare April 1, 2022 12:09
@nicolas-grekas
Copy link
Member

Good catch, thanks @xabbuh.

@nicolas-grekas nicolas-grekas merged commit bbcfb0c into symfony:4.4 Apr 1, 2022
@xabbuh xabbuh deleted the issue-45709-45735 branch April 1, 2022 12:29
This was referenced Apr 2, 2022
fabpot added a commit that referenced this pull request Apr 12, 2022
… body (nicolas-grekas)

This PR was merged into the 4.4 branch.

Discussion
----------

[HttpClient] Fix sending content-length when streaming the body

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #45965
| License       | MIT
| Doc PR        | -

Follows #45906 and previous PRs on the topic.

This PR partly reverts previous changes but keeps tests added to cover how we manage content-related headers when redirecting.

Relying on curl doesn't work in all cases, so we need to manage them on our own.

Commits
-------

ee57696 [HttpClient] Fix sending content-length when streaming the body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants