When reading the HTTP input, skip the \r\n\r\n. Fixes the problem of 4 non-Metacube...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 13 Aug 2013 14:08:01 +0000 (16:08 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 13 Aug 2013 14:08:01 +0000 (16:08 +0200)
httpinput.cpp

index c346a14..a3a950b 100644 (file)
@@ -352,7 +352,7 @@ void HTTPInput::do_work()
                                char *ptr = static_cast<char *>(
                                        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());
                        }