content-length header missing when using httpx, present when using curl #1906
Answered
by
mjuopperi
mjuopperi
asked this question in
Potential Issue
-
Hello, httpx.head("https://www.fuzzwork.co.uk/dump/postgres-schema-latest.dmp.bz2").headers.get("content-length") returns If I do the same request with
|
Beta Was this translation helpful? Give feedback.
Answered by
mjuopperi
Oct 20, 2021
Replies: 1 comment
-
Turns out I have to set |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mjuopperi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Turns out I have to set
headers={"Accept-Encoding": "identity"}
on the request or the server will not send that header.