mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
RequestServer: Instruct curl to use Windows CA cert store
This is required for supporting HTTPS requests. Otherwise we fail with CURLE_PEER_FAILED_VERIFICATION.
This commit is contained in:
parent
95f239a357
commit
643f0de422
Notes:
github-actions[bot]
2025-10-30 03:09:10 +00:00
Author: https://github.com/ayeteadoe
Commit: 643f0de422
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5981
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/R-Goc
Reviewed-by: https://github.com/sakgoyal
Reviewed-by: https://github.com/stasoid
1 changed files with 5 additions and 0 deletions
|
|
@ -350,6 +350,11 @@ void Request::handle_fetch_state()
|
|||
set_option(CURLOPT_CUSTOMREQUEST, m_method.characters());
|
||||
set_option(CURLOPT_FOLLOWLOCATION, 0);
|
||||
|
||||
#if defined(AK_OS_WINDOWS)
|
||||
// Without explicitly using the OS Native CA cert store on Windows, https requests timeout with CURLE_PEER_FAILED_VERIFICATION
|
||||
set_option(CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA);
|
||||
#endif
|
||||
|
||||
curl_slist* curl_headers = nullptr;
|
||||
|
||||
if (m_method.is_one_of("POST"sv, "PUT"sv, "PATCH"sv, "DELETE"sv)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue