]> git.sesse.net Git - cubemap/commitdiff
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 c346a1423ebbe938e4ee3bb7f6dfe49011bb005a..a3a950b03a9876c33fbd1de794e25549eea0b7c9 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());
                        }