[webkit-changes] [WebKit/WebKit] 04637e: [Curl] Remove chunked transfer processing for PUT/...

Kenji Shukuwa noreply at github.com
Fri Jul 14 00:53:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 04637e99dc2ac4864a2b21553f377ce9ec553977
      https://github.com/WebKit/WebKit/commit/04637e99dc2ac4864a2b21553f377ce9ec553977
  Author: Kenji Shukuwa <kenji.shukuwa at open-tec.co.jp>
  Date:   2023-07-14 (Fri, 14 Jul 2023)

  Changed paths:
    M Source/WebCore/platform/network/curl/CurlContext.cpp
    M Source/WebCore/platform/network/curl/CurlContext.h
    M Source/WebCore/platform/network/curl/CurlFormDataStream.cpp
    M Source/WebCore/platform/network/curl/CurlFormDataStream.h
    M Source/WebCore/platform/network/curl/CurlRequest.cpp
    M Source/WebCore/platform/network/curl/CurlRequest.h

  Log Message:
  -----------
  [Curl] Remove chunked transfer processing for PUT/POST methods
https://bugs.webkit.org/show_bug.cgi?id=259209

Reviewed by Fujii Hironori.

CurlFormDataStream::shouldUseChunkTransfer() always returns false since 204820 at main.
Since chunked transfer processing has not been used for a long time, we will
remove chunked transfer processing for PUT/POST methods.

It also requires libcurl built with large file support as a required feature.

* Source/WebCore/platform/network/curl/CurlContext.cpp:
(WebCore::CurlContext::CurlContext):
(WebCore::CurlHandle::enableHttpPostRequest):
(WebCore::CurlHandle::enableHttpPutRequest):
(WebCore::CurlHandle::setPostFieldSize): Deleted.
(WebCore::CurlHandle::setInFileSize): Deleted.
(WebCore::CurlHandle::expectedSizeOfCurlOffT): Deleted.
* Source/WebCore/platform/network/curl/CurlContext.h:
* Source/WebCore/platform/network/curl/CurlFormDataStream.cpp:
(WebCore::CurlFormDataStream::totalSize):
(WebCore::CurlFormDataStream::shouldUseChunkTransfer): Deleted.
(WebCore::CurlFormDataStream::computeContentLength): Deleted.
* Source/WebCore/platform/network/curl/CurlFormDataStream.h:
(WebCore::CurlFormDataStream::elementSize): Deleted.
* Source/WebCore/platform/network/curl/CurlRequest.cpp:
(WebCore::CurlRequest::setupPUT):
(WebCore::CurlRequest::setupPOST):
(WebCore::CurlRequest::setupSendData): Deleted.
* Source/WebCore/platform/network/curl/CurlRequest.h:

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




More information about the webkit-changes mailing list