The difference between "x-gzip" and "gzip" for content encoding

In the request header we have accept-encoding: gzip, but received an encrypted response x-gzip.

I found this note about x-gzip and gzip :

Using program names to identify encoding formats is undesirable and not recommended for future encodings. Their use here is an indicator of historical practice, not a good design. For compatibility with previous HTTP implementations, applications SHOULD assume that "x-gzip" and "x-compress" should be equivalent to "gzip" and "compress", respectively.

Does this mean x-gzipequal gzip? Can we just use the same method to unpack content x-gzipas gzipcontent?

+4
source share
1 answer

You're right. x-gzipand are gzipequivalent, and the content you receive can be unpacked the same way for both.

+2
source

Source: https://habr.com/ru/post/1527631/


All Articles