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

Skip to content

[HttpClient] Move Content-Type after Content-Length #45813

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
Mar 22, 2022

Conversation

nicolas-grekas
Copy link
Member

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

Some nitpicking found after opening php-src. See https://bugs.php.net/44603

@carsonbot carsonbot added this to the 4.4 milestone Mar 22, 2022
@nicolas-grekas nicolas-grekas merged commit 13e0671 into symfony:4.4 Mar 22, 2022
@stof
Copy link
Member

stof commented Mar 22, 2022

the bug you linked as marked as being fixed in PHP 5.3. So is it actually the reason for that change ?

@nicolas-grekas nicolas-grekas deleted the hc-length-first branch March 22, 2022 12:39
@nicolas-grekas
Copy link
Member Author

nicolas-grekas commented Mar 22, 2022

The bug is fixed when using NativeHttpClient, but this ensures that the order will also be the correct one when using curl / amp.

nicolas-grekas added a commit that referenced this pull request Mar 22, 2022
…h (nicolas-grekas)"

This reverts commit 13e0671, reversing
changes made to 01f6749.
nicolas-grekas added a commit that referenced this pull request Mar 22, 2022
* 4.4:
  Revert "bug #45813 [HttpClient] Move Content-Type after Content-Length (nicolas-grekas)"
nicolas-grekas added a commit that referenced this pull request Mar 22, 2022
* 5.4:
  Revert "bug #45813 [HttpClient] Move Content-Type after Content-Length (nicolas-grekas)"
  [FrameworkBundle] Fix exit codes in debug:translation command
  [Cache] Declaratively declare/hide DoctrineProvider to avoid breaking static analysis
  [HttpClient] Let curl handle Content-Length headers
  Improve testsuite
  [HttpClient] Move Content-Type after Content-Length
  [HttpClient] minor cs fix
  [Config] Fix using null values with config builders
nicolas-grekas added a commit that referenced this pull request Mar 22, 2022
* 6.0:
  Revert "bug #45813 [HttpClient] Move Content-Type after Content-Length (nicolas-grekas)"
  [FrameworkBundle] Fix exit codes in debug:translation command
  [Cache] Declaratively declare/hide DoctrineProvider to avoid breaking static analysis
  [HttpClient] Let curl handle Content-Length headers
  Improve testsuite
  [HttpClient] Move Content-Type after Content-Length
  [HttpClient] minor cs fix
  [Config] Fix using null values with config builders
This was referenced Apr 2, 2022
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