-
Notifications
You must be signed in to change notification settings - Fork 328
Log warning instead of returning error when non-utf8 header passed through externalize_header_map #8828
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
rohan-b99
merged 9 commits into
dev
from
rohan-b99/allow-non-utf8-characters-in-headers
Jan 29, 2026
Merged
Log warning instead of returning error when non-utf8 header passed through externalize_header_map #8828
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
40afb8a
Log warning when non-utf8 header passed through externalize_header_ma…
rohan-b99 a2c39af
Set header map capacity at creation
rohan-b99 89bebfb
Create fix_rohan_b99_allow_non_utf8_characters_in_headers.md
rohan-b99 25cb079
Merge branch 'dev' into rohan-b99/allow-non-utf8-characters-in-headers
rohan-b99 bbe930b
Clearer warning log
rohan-b99 66c8aa6
Update tests for new warning log
rohan-b99 e9664fa
Update external.rs
rohan-b99 040a33a
Copy doc line to docs/source/routing/customization/coprocessor/refere…
rohan-b99 c2f6cd6
Merge branch 'dev' into rohan-b99/allow-non-utf8-characters-in-headers
rohan-b99 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
.changesets/fix_rohan_b99_allow_non_utf8_characters_in_headers.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| ### Log warning instead of returning error when non-utf8 header passed through externalize_header_map ([PR #8828](https://github.com/apollographql/router/pull/8828)) | ||
|
|
||
| - A warning log with the name of the header will now be emitted | ||
| - The remaining valid headers will be returned now instead of an error, which is more consistent with the router's default behaviour when a coprocessor is not used. | ||
|
|
||
| By [@rohan-b99](https://github.com/rohan-b99) in https://github.com/apollographql/router/pull/8828 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.