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

python-ecosys/aiohttp: fix header - case-insensitivity #972

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FuNK3Y
Copy link

@FuNK3Y FuNK3Y commented Feb 7, 2025

According to RFC (https://datatracker.ietf.org/doc/html/rfc7230#section-3.2) header names are case-insensitive.

This PR makes sure that the module behaves consistently regardless of the casing of Content-type and Content-Length (other headers are not considered by the module)

Without this fix, the client seems to wait for the connection termination (~10 seconds) prior to returning any content if the casing of Content-Length is different.

@FuNK3Y
Copy link
Author

FuNK3Y commented Feb 7, 2025

The pipeline is failing for an unrelated reason (version of GHA upload artifact)

@FuNK3Y FuNK3Y force-pushed the fix-header-case-sensitivity branch 2 times, most recently from 7a93168 to e5fffb6 Compare February 7, 2025 19:35
Signed-off-by: FuNK3Y
Signed-off-by: FuNK3Y <[email protected]>
@FuNK3Y FuNK3Y force-pushed the fix-header-case-sensitivity branch from e5fffb6 to 6dddab7 Compare February 7, 2025 19:40
@FuNK3Y FuNK3Y changed the title aiohttp: fix header - case-insensitivity python-ecosys/aiohttp: fix header - case-insensitivity Feb 10, 2025
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.

1 participant