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:
Kenneth Myhra 2024-06-09 19:50:23 +02:00 committed by Tim Flynn
parent 2ea680b5b3
commit c51d01bea7
Notes: sideshowbarker 2024-07-17 02:35:27 +09:00

View file

@ -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))