mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
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:
parent
61a0898f5f
commit
fe377977d9
Notes:
github-actions[bot]
2025-11-03 16:57:05 +00:00
Author: https://github.com/tcl3
Commit: fe377977d9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6671
Reviewed-by: https://github.com/gmta
3 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue