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:
4d13243
)
Correct that a status message is not captured.
author
Aiwota Programmer
<aiwotaprog@tetteke.tk>
Sun, 28 Jun 2009 12:54:31 +0000
(21:54 +0900)
committer
Aiwota Programmer
<aiwotaprog@tetteke.tk>
Sun, 28 Jun 2009 12:56:06 +0000
(21:56 +0900)
src/http_client.cxx
patch
|
blob
|
history
diff --git
a/src/http_client.cxx
b/src/http_client.cxx
index
3fbc4bf
..
f75afac
100644
(file)
--- a/
src/http_client.cxx
+++ b/
src/http_client.cxx
@@
-126,9
+126,8
@@
void AsyncClient::handle_read_status_line(
stream >> http_version_;
stream >> status_code_;
-
- std::string status_message_;
std::getline(stream, status_message_);
+ boost::algorithm::trim(status_message_);
if (!stream || !boost::algorithm::starts_with(http_version_, "HTTP/")) {
std::cerr << "response is not HTTP" << std::endl;