RequestServer: Add a CURL_DEBUG flag

This sets `CURLOPT_VERBOSE` to 1, which enables detailed logging of
all cURL connections to stderr.
This commit is contained in:
Tim Ledbetter 2025-11-03 10:13:25 +00:00 committed by Tim Flynn
parent 61a0898f5f
commit fe377977d9
Notes: github-actions[bot] 2025-11-03 16:57:05 +00:00
3 changed files with 8 additions and 0 deletions

View file

@ -339,6 +339,9 @@ void Request::handle_fetch_state()
set_option(CURLOPT_CUSTOMREQUEST, m_method.characters());
set_option(CURLOPT_FOLLOWLOCATION, 0);
if constexpr (CURL_DEBUG) {
set_option(CURLOPT_VERBOSE, 1);
}
#if defined(AK_OS_WINDOWS)
// Without explicitly using the OS Native CA cert store on Windows, https requests timeout with CURLE_PEER_FAILED_VERIFICATION