mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-24 10:18:59 +00:00
Fetch: Make sure we iterate over HeaderMap's headers()
This fixes a build failure when built with CMake option '-DENABLE_ALL_THE_DEBUG_MACROS=ON'.
This commit is contained in:
parent
2ea680b5b3
commit
c51d01bea7
Notes:
sideshowbarker
2024-07-17 02:35:27 +09:00
Author: https://github.com/kennethmyhra
Commit: c51d01bea7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/119
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 1 additions and 1 deletions
|
@ -1877,7 +1877,7 @@ static void log_load_request(auto const& load_request)
|
||||||
static void log_response(auto const& status_code, auto const& headers, auto const& data)
|
static void log_response(auto const& status_code, auto const& headers, auto const& data)
|
||||||
{
|
{
|
||||||
dbgln("< HTTP/1.1 {}", status_code.value_or(0));
|
dbgln("< HTTP/1.1 {}", status_code.value_or(0));
|
||||||
for (auto const& [name, value] : headers)
|
for (auto const& [name, value] : headers.headers())
|
||||||
dbgln("< {}: {}", name, value);
|
dbgln("< {}: {}", name, value);
|
||||||
dbgln("<");
|
dbgln("<");
|
||||||
for (auto line : StringView { data }.split_view('\n', SplitBehavior::KeepEmpty))
|
for (auto line : StringView { data }.split_view('\n', SplitBehavior::KeepEmpty))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue