Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2790de3979ba9d5e3f08376627a19945a75f25ef
https://github.com/WebKit/WebKit/commit/2790de3979ba9d5e3f08376627a19945a75f25ef
Author: Yury Semikhatsky <[email protected]>
Date: 2026-07-17 (Fri, 17 Jul 2026)
Changed paths:
M Source/WebCore/platform/network/curl/CurlContext.cpp
M Source/WebCore/platform/network/curl/CurlContext.h
Log Message:
-----------
[Curl] Route Proxy- request headers to the proxy CONNECT
https://bugs.webkit.org/show_bug.cgi?id=319633
Reviewed by Devin Rousso.
libcurl defaults to CURLHEADER_SEPARATE, so headers set via
CURLOPT_HTTPHEADER only go to the origin inside the TLS tunnel and are
stripped from the proxy CONNECT. Route request headers whose name starts
with "Proxy-" through CURLOPT_PROXYHEADER instead, so e.g.
Proxy-Authorization reaches an authenticating proxy on HTTPS navigations.
* Source/WebCore/platform/network/curl/CurlContext.cpp:
(WebCore::CurlHandle::removeRequestHeader):
(WebCore::CurlHandle::appendRequestHeader):
(WebCore::CurlHandle::enableProxyRequestHeaders):
* Source/WebCore/platform/network/curl/CurlContext.h:
Canonical link: https://commits.webkit.org/317408@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications