OSDN Git Service
(root)
/
fukui-no-namari
/
dialektos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8fd119
)
Correct that the head of downloaded contents is not captured.
author
Aiwota Programmer
<aiwotaprog@tetteke.tk>
Sun, 28 Jun 2009 20:04:32 +0000
(
05:04
+0900)
committer
Aiwota Programmer
<aiwotaprog@tetteke.tk>
Sun, 28 Jun 2009 20:04:32 +0000
(
05:04
+0900)
src/http_client.cxx
patch
|
blob
|
history
diff --git
a/src/http_client.cxx
b/src/http_client.cxx
index
f75afac
..
a4301f4
100644
(file)
--- a/
src/http_client.cxx
+++ b/
src/http_client.cxx
@@
-149,6
+149,7
@@
void AsyncClient::handle_read_headers(const boost::system::error_code& err) {
std::string line;
while (std::getline(stream, line)) {
boost::algorithm::trim_right(line);
+ if (line.empty()) break;
response_header_.set_header_from_line(line);
}