summaryrefslogtreecommitdiff
path: root/src/HttpConnection.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-11-22 11:17:35 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-11-22 11:17:35 +0000
commit7436490f75e4e7941ec5e70316c3e5c9e91405cf (patch)
treec8c8ce53ee2c24a410e3efa6b4ab73c6d444e157 /src/HttpConnection.cc
parent1fed0c0cb09aa70da2b02dea9742ff8dd59636be (diff)
2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Replaced strtol with Util::parseInt * src/ChunkedEncoding.cc * src/HttpConnection.cc * src/CookieBoxFactory.cc * src/ParameterizedStringParser.cc * src/Util.cc * test/UtilTest.cc * test/OptionHandlerTest.cc * src/Request.cc Throw exception when empty string is given. The message for exception changed. * src/Util.cc (parseInt)(parseLLInt) * src/message.h
Diffstat (limited to 'src/HttpConnection.cc')
-rw-r--r--src/HttpConnection.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HttpConnection.cc b/src/HttpConnection.cc
index 57ebbbaf..072e9f34 100644
--- a/src/HttpConnection.cc
+++ b/src/HttpConnection.cc
@@ -115,7 +115,7 @@ HttpResponseHandle HttpConnection::receiveResponse()
HttpResponseHandle httpResponse = new HttpResponse();
httpResponse->setCuid(cuid);
- httpResponse->setStatus(strtol(httpStatusHeader.first.c_str(), 0, 10));
+ httpResponse->setStatus(Util::parseInt(httpStatusHeader.first));
httpResponse->setHttpHeader(httpStatusHeader.second);
httpResponse->setHttpRequest(entry->getHttpRequest());