[whatwg/fetch] Content codings (Content-Encoding) (#716)

I looked into https://github.com/whatwg/fetch/pull/710#issuecomment-383000148 a bit. Browser interoperability here is far from good. Interesting scenarios:

* gzip
* unknown
* gzip,unknown
* unknown,gzip
* deflate
* gzip,deflate
* gzip,gzip
* gzip listed a large number of times with the content encoded with gzip as many times (see https://bugzilla.mozilla.org/show_bug.cgi?id=1248577)
* having a response body of which only the first half is encoded (see https://bugs.chromium.org/p/chromium/issues/detail?id=654889)

Somewhat related:
* https://bugs.chromium.org/p/chromium/issues/detail?id=567163
* https://github.com/httpwg/http-core/issues/58

It does not seem worth blocking #710 on this as it's an improvement over the status quo, but this could use more work.

cc @MoritzKn @TimothyGu @MattMenke2 @mnot 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/716

Received on Monday, 23 April 2018 12:05:53 UTC