[Webkit-unassigned] [Bug 247421] Content downloaded with fetch() API when Concent-Encoding: gzip is set is not decompressed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 4 01:49:00 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=247421

--- Comment #8 from jujjyl at gmail.com ---
> I can't reproduce this issue when using a basic HTTP server with python -m http.server. That is, the test case passes.

Ops, sorry, I think the test cases "passes" with python -m http.server because I coded the check a bit silly in test.html. (I tried to observe Content-Encoding intent, but does not make sense for the scope of this bug report)

If you change the line

    if (u8[0] == 0x1f && u8[1] == 0x8b && response.headers.get('Content-Encoding') == 'gzip') document.body.innerHTML = 'Test ERROR: Received gzip-compressed data, but browser should have decompressed it';


to

    if (u8.length != 93274) document.body.innerHTML = 'Test ERROR: Received compressed data, but browser should have decompressed it';

then the test should fail also with regular python -m http.server.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221104/9dd35fa0/attachment.htm>


More information about the webkit-unassigned mailing list