From 838c6717730efb3ce1d97c236ece8d42cc78b5c2 Mon Sep 17 00:00:00 2001 From: Aiwota Programmer Date: Sun, 28 Jun 2009 21:54:31 +0900 Subject: [PATCH] Correct that a status message is not captured. --- src/http_client.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/http_client.cxx b/src/http_client.cxx index 3fbc4bf..f75afac 100644 --- 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; -- 2.11.0