From 712f76c0108627f38b777cb839c99e3c3a2f05cc Mon Sep 17 00:00:00 2001 From: Luke Date: Sun, 24 Jan 2021 01:41:08 +0000 Subject: [PATCH] LibHTTP: Always read in the last chunk This was accidentally put behind a debug flag. Fixes #5080 --- Userland/Libraries/LibHTTP/Job.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibHTTP/Job.cpp b/Userland/Libraries/LibHTTP/Job.cpp index ddb109b29a..707cd3efbd 100644 --- a/Userland/Libraries/LibHTTP/Job.cpp +++ b/Userland/Libraries/LibHTTP/Job.cpp @@ -300,9 +300,10 @@ void Job::on_socket_connected() // we've read everything, now let's get the next chunk size = -1; + [[maybe_unused]] auto line = read_line(PAGE_SIZE); if constexpr (debug_job) - dbgln("Line following (should be empty): '{}'", read_line(PAGE_SIZE)); + dbgln("Line following (should be empty): '{}'", line); } m_current_chunk_remaining_size = size; }