Skip to content

Conversation

@vjik
Copy link
Member

@vjik vjik commented Sep 10, 2025

Q A
Is bugfix?
New feature? ✔️
Breaks BC?
Fixed issues comma-separated list of tickets # fixed by the PR, if any

@vjik vjik added the status:under development Someone is working on a pull request. label Sep 10, 2025
foreach ($request->getHeader(Header::ACCEPT) as $headerValue) {
$values[] = array_filter(
array_map(
trim(...),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Value should be clean from extra parameters (as example, q):

text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7

@samdark
Copy link
Member

samdark commented Sep 10, 2025

The idea is OK. The feature is needed but quite rarely used in practice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:under development Someone is working on a pull request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants