[webkit-changes] [WebKit/WebKit] 007a3e: [Curl] Replace handling of reason-phrase in Resour...
Kenji Shukuwa
noreply at github.com
Wed Jun 21 22:51:12 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 007a3ea80d5c8147063e10e84dcd5186048f9601
https://github.com/WebKit/WebKit/commit/007a3ea80d5c8147063e10e84dcd5186048f9601
Author: Kenji Shukuwa <kenji.shukuwa at open-tec.co.jp>
Date: 2023-06-21 (Wed, 21 Jun 2023)
Changed paths:
M Source/WebCore/platform/network/curl/ResourceResponse.h
M Source/WebCore/platform/network/curl/ResourceResponseCurl.cpp
Log Message:
-----------
[Curl] Replace handling of reason-phrase in ResourceResponseCurl
https://bugs.webkit.org/show_bug.cgi?id=258389
Reviewed by Fujii Hironori.
In ResourceResponseCurl, the reason-phrase of the HTTP status line is
obtained in the ResourceResponse::setStatusLine function, but in order
to reduce the code to be maintained, replace it with
extractReasonPhraseFromHTTPStatusLine of HTTPParsers.
Additionally, the reason-phrase can contain ":". Therefore, there is
a possibility that the reason-phrase cannot be obtained with the current
processing.
* Source/WebCore/platform/network/curl/ResourceResponse.h:
* Source/WebCore/platform/network/curl/ResourceResponseCurl.cpp:
(WebCore::ResourceResponse::appendHTTPHeaderField):
(WebCore::ResourceResponse::setStatusLine): Deleted.
Canonical link: https://commits.webkit.org/265395@main
More information about the webkit-changes
mailing list