From 158563d16a78bb0138c8cd5703dd58e367d59640 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 14 May 2008 14:02:18 +0000 Subject: 2008-05-14 Tatsuhiro Tsujikawa 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 --- src/AbstractProxyResponseCommand.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/AbstractProxyResponseCommand.cc') 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()); -- cgit