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

Read content length from response rather than request #4488

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Jun 24, 2024

Summary

I might be mistaken, but I think we need to read the header from the response, not the request. The request would only contain headers that we set.

I verified (with extra logging) that the request header is None while PyPI returns a valid length in the response header.

@charliermarsh charliermarsh merged commit ff72bb9 into main Jun 24, 2024
47 checks passed
@charliermarsh charliermarsh deleted the charlie/req branch June 24, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants