Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpFoundation] Prevent duplicated headers when using Early Hints#53733

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

dunglas
Copy link
Member

QA
Branch?6.4
Bug fix?yes
New feature?no
Deprecations?no
Issuesn/a
LicenseMIT

Currently, headers are being duplicated in the final response if a 103 response has previously been sent. This patch fixes the issue.

Before:

< HTTP/2 103< alt-svc: h3=":443"; ma=2592000< cache-control: no-cache, private< date: Fri, 02 Feb 2024 15:21:00 GMT< link: </style.css>; rel=preload; as=style< server: Caddy< x-powered-by: PHP/8.3.1< HTTP/2 200< cache-control: no-cache, private< cache-control: no-cache, private< content-type: text/html; charset=UTF-8< date: Fri, 02 Feb 2024 15:21:00 GMT< date: Fri, 02 Feb 2024 15:21:00 GMT< link: </style.css>; rel=preload; as=style< link: </style.css>; rel=preload; as=style

@nicolas-grekas
Copy link
Member

Can this be covered by a test case?

chapterjason reacted with thumbs up emoji

@dunglas
Copy link
MemberAuthor

@nicolas-grekas the only way I can think of to test this is to add FrankenPHP to the CI to do an integration test, or to override the built-inheader() function. What would be your preferred approach?

@dunglas
Copy link
MemberAuthor

Integration test added.

@dunglasdunglasforce-pushed thefix/duplicate-headers-when-103 branch 3 times, most recently frombcdd933 to439e860CompareFebruary 6, 2024 13:32
@nicolas-grekasnicolas-grekasforce-pushed thefix/duplicate-headers-when-103 branch from439e860 toca5db79CompareFebruary 8, 2024 15:01
@nicolas-grekas
Copy link
Member

Thank you@dunglas.

@nicolas-grekasnicolas-grekas merged commitfa843ce intosymfony:6.4Feb 8, 2024
This was referencedFeb 27, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

3 participants
@dunglas@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp