Skip to content

Fixes how Python Workers treats duplicate headers#5915

Merged
dom96 merged 6 commits intomainfrom
dominik/py-header-fix-collab
Feb 2, 2026
Merged

Fixes how Python Workers treats duplicate headers#5915
dom96 merged 6 commits intomainfrom
dominik/py-header-fix-collab

Conversation

@dom96
Copy link
Contributor

@dom96 dom96 commented Jan 16, 2026

Based on #5678 (thank you @n3rada for reporting and helping out with the fix)

All duplicate headers except Set-Cookie will now be added to Python's http.client.HTTPMessage combined and separated by commas.

Test Plan

$ bazel run @workerd//src/workerd/server/tests/python:sdk_0.28.2@

Copy link
Contributor

@ryanking13 ryanking13 left a comment

Choose a reason for hiding this comment

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

Thanks for handling this.

@dom96 dom96 force-pushed the dominik/py-header-fix-collab branch from 78b49ca to 6a13955 Compare February 2, 2026 15:26
@dom96 dom96 force-pushed the dominik/py-header-fix-collab branch from 67b0f04 to 3dc116f Compare February 2, 2026 17:35
@dom96 dom96 merged commit 7e81a43 into main Feb 2, 2026
22 checks passed
@dom96 dom96 deleted the dominik/py-header-fix-collab branch February 2, 2026 18:49
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.

4 participants