summaryrefslogtreecommitdiff
path: root/src/AbstractProxyResponseCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-05-14 14:02:18 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-05-14 14:02:18 +0000
commit158563d16a78bb0138c8cd5703dd58e367d59640 (patch)
tree54e9d6c0b605d061960e6fedb97040bbd1cb8acb /src/AbstractProxyResponseCommand.cc
parent9a98c7197229f4d3ab907c85cdcfb146ad0e5c09 (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/AbstractProxyResponseCommand.cc')
-rw-r--r--src/AbstractProxyResponseCommand.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/AbstractProxyResponseCommand.cc b/src/AbstractProxyResponseCommand.cc
index dcab70ed..08e039cf 100644
--- a/src/AbstractProxyResponseCommand.cc
+++ b/src/AbstractProxyResponseCommand.cc
@@ -44,6 +44,7 @@
#include "Socket.h"
#include "DlRetryEx.h"
#include "message.h"
+#include "HttpHeader.h"
namespace aria2 {
@@ -65,7 +66,7 @@ bool AbstractProxyResponseCommand::executeInternal() {
e->commands.push_back(this);
return false;
}
- if(httpResponse->getResponseStatus() != "200") {
+ if(httpResponse->getResponseStatus() != HttpHeader::S200) {
throw DlRetryEx(EX_PROXY_CONNECTION_FAILED);
}
e->commands.push_back(getNextCommand());