Skip to content

Error safely if header values are invalid#739

Merged
azkrishpy merged 3 commits into
mainfrom
ws-fix
May 21, 2026
Merged

Error safely if header values are invalid#739
azkrishpy merged 3 commits into
mainfrom
ws-fix

Conversation

@azkrishpy
Copy link
Copy Markdown
Contributor

@azkrishpy azkrishpy commented May 21, 2026

Issue #, if available:

Description of changes:
Header values are not strictly guarded by ASCII checks and we crash when header values are not wrangled correctly. This might cause parallel executing tasks to lose progress. Since we know that header values are not strict ASCII, this change attempts to raise an error instead of crashing the program.

Note: This can only occur due to malformed responses from servers so it is primarily a defensive check and not an expected behavior from services.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@azkrishpy azkrishpy marked this pull request as ready for review May 21, 2026 19:11
@azkrishpy azkrishpy changed the title Error safely if headers are incorrect Error safely if header values are invalid May 21, 2026
@azkrishpy azkrishpy merged commit b2b01dd into main May 21, 2026
153 of 154 checks passed
@azkrishpy azkrishpy deleted the ws-fix branch May 21, 2026 21:39
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.

2 participants