From c51d01bea712d75f9b2cd700be942935044e49b4 Mon Sep 17 00:00:00 2001 From: Kenneth Myhra Date: Sun, 9 Jun 2024 19:50:23 +0200 Subject: [PATCH] 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'. --- Userland/Libraries/LibWeb/Fetch/Fetching/Fetching.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Fetch/Fetching/Fetching.cpp b/Userland/Libraries/LibWeb/Fetch/Fetching/Fetching.cpp index db0a71634c6..55c3aedf6e9 100644 --- a/Userland/Libraries/LibWeb/Fetch/Fetching/Fetching.cpp +++ b/Userland/Libraries/LibWeb/Fetch/Fetching/Fetching.cpp @@ -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) { 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("<"); for (auto line : StringView { data }.split_view('\n', SplitBehavior::KeepEmpty))