From c73067960fde76968fc7b460064277d93be2c05f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 13 Aug 2013 16:08:01 +0200 Subject: [PATCH] When reading the HTTP input, skip the \r\n\r\n. Fixes the problem of 4 non-Metacube bytes being skipped. --- httpinput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpinput.cpp b/httpinput.cpp index c346a14..a3a950b 100644 --- a/httpinput.cpp +++ b/httpinput.cpp @@ -352,7 +352,7 @@ void HTTPInput::do_work() char *ptr = static_cast( memmem(response.data(), response.size(), "\r\n\r\n", 4)); assert(ptr != NULL); - extra_data = string(ptr, &response[0] + response.size()); + extra_data = string(ptr + 4, &response[0] + response.size()); response.resize(ptr - response.data()); } -- 2.39.2