mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01: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
|
|
@ -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…
Reference in New Issue
Block a user