Skip to content
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

Allow multiple headers with the same name. #13

Merged
merged 1 commit into from
Feb 8, 2022

Conversation

doiftrue
Copy link
Contributor

@doiftrue doiftrue commented Feb 6, 2022

In HTTP headers it is allowed to specify the same name. In particular, it can be useful to specify links for preload:

Link: <https://example.com/other/styles.css>; rel=preload; as=style
Link: </theme/styles.css>; rel=preload; as=style

Some info about multiple headers https://stackoverflow.com/questions/3241326/set-more-than-one-http-header-with-the-same-name

@kovshenin kovshenin merged commit 500b85e into kovshenin:main Feb 8, 2022
kovshenin added a commit that referenced this pull request Feb 8, 2022
Following #13 repeated headers are now allowed, which can cause
some headers to be sent twice without latter headers overwriting
the prior ones.
@doiftrue doiftrue deleted the same-name-headers branch November 27, 2022 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants