Where is the auto-decompression behavior documented? #1819
Unanswered
nicolaschambrier
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello 👋
I've just discovered the (obvious when you think about it, but not so much when you dig) behavior of
fetch
implementations regardingContent-Encoding: gzip; etc.
: the body is automatically decompressed, unless you specific an implementation-specific option (compress: false
in node-fetch, which doesn't seem to work when we tested it by the way).The behaviour is very useful to us, but I would like to be able to rely on it knowing it's a documented and stable behavior, and couldn't find this documented in the Fetch Standard, where is this documented?
As far as I understand it it's not part of the spec but an implementation-specific feature, right?
Beta Was this translation helpful? Give feedback.
All reactions