- From: cutiful <notifications@github.com>
- Date: Thu, 16 Oct 2025 08:57:54 -0700
- To: whatwg/xhr <xhr@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 16 October 2025 15:57:59 UTC
cutiful created an issue (whatwg/xhr#403) ### What is the issue with the XMLHttpRequest Standard? (Continuing from #388.) When processing a response body, `loaded` on `ProgressEvent` is calculated after codings are handled in the Fetch specification, i. e. decompressed data size. However, `total` is unconditionally the result of _extracting a length_ from the Content-Length header, which references compressed length when Content-Encoding is set to a known encoding. In those cases, the XHR specification should initialize _length_ to zero. That would make `lengthComputable` false, which is the expected behavior for compressed responses. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/xhr/issues/403 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/xhr/issues/403@github.com>
Received on Thursday, 16 October 2025 15:57:59 UTC