projects
/
cubemap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8b466d2
)
When reading the HTTP input, skip the \r\n\r\n. Fixes the problem of 4 non-Metacube...
author
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Tue, 13 Aug 2013 14:08:01 +0000
(16:08 +0200)
committer
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Tue, 13 Aug 2013 14:08:01 +0000
(16:08 +0200)
httpinput.cpp
patch
|
blob
|
history
diff --git
a/httpinput.cpp
b/httpinput.cpp
index
c346a14
..
a3a950b
100644
(file)
--- a/
httpinput.cpp
+++ b/
httpinput.cpp
@@
-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());
}