Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2bf8d40cc4077d9b6aad416b58e48ee2ea97893b
      
https://github.com/WebKit/WebKit/commit/2bf8d40cc4077d9b6aad416b58e48ee2ea97893b
  Author: Youenn Fablet <[email protected]>
  Date:   2023-10-03 (Tue, 03 Oct 2023)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/xhr-content-length.https.window-expected.txt
    M Source/WebCore/Modules/fetch/FetchResponse.cpp
    M Source/WebCore/platform/network/HTTPParsers.cpp
    M Source/WebCore/platform/network/HTTPParsers.h

  Log Message:
  -----------
  Synthetic FetchResponse should populate their expected content length
https://bugs.webkit.org/show_bug.cgi?id=262530
rdar://116388101

Reviewed by Chris Dumez.

We are now parsing the Content-Length header for synthetic responses to 
properly set ResourceResponse expectedContentLength.
This aligns with responses coming from the network.
This is useful for XHR and will be useful for downloads as well.

* 
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/xhr-content-length.https.window-expected.txt:
* Source/WebCore/Modules/fetch/FetchResponse.cpp:
(WebCore::FetchResponse::create):
* Source/WebCore/platform/network/HTTPParsers.cpp:
(WebCore::parseContentLength):
* Source/WebCore/platform/network/HTTPParsers.h:

Canonical link: https://commits.webkit.org/268780@main


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to