summaryrefslogtreecommitdiff
path: root/src/AbstractProxyResponseCommand.cc
diff options
context:
space:
mode:
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());