diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-05-14 14:02:18 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-05-14 14:02:18 +0000 |
| commit | 158563d16a78bb0138c8cd5703dd58e367d59640 (patch) | |
| tree | 54e9d6c0b605d061960e6fedb97040bbd1cb8acb /src/HttpResponseCommand.cc | |
| parent | 9a98c7197229f4d3ab907c85cdcfb146ad0e5c09 (diff) | |
2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Defined HTTP status as static const std::string
* src/AbstractProxyResponseCommand.cc
* src/HttpHeader.cc
* src/HttpHeader.h
* src/HttpResponse.cc
* src/HttpResponseCommand.cc
* src/HttpSkipResponseCommand.cc
Diffstat (limited to 'src/HttpResponseCommand.cc')
| -rw-r--r-- | src/HttpResponseCommand.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/HttpResponseCommand.cc b/src/HttpResponseCommand.cc index f2e6db7f..b7522bd6 100644 --- a/src/HttpResponseCommand.cc +++ b/src/HttpResponseCommand.cc @@ -61,6 +61,7 @@ #include "prefs.h" #include "StringFormat.h" #include "HttpSkipResponseCommand.h" +#include "HttpHeader.h" namespace aria2 { @@ -88,7 +89,7 @@ bool HttpResponseCommand::executeInternal() httpResponse->validateResponse(); httpResponse->retrieveCookie(); - if(httpResponse->getResponseStatus() >= "300") { + if(httpResponse->getResponseStatus() >= HttpHeader::S300) { return skipResponseBody(httpResponse); } |
