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
This commit is contained in:
Tatsuhiro Tsujikawa
2008-05-14 14:02:18 +00:00
parent 9a98c71972
commit 158563d16a
7 changed files with 42 additions and 8 deletions

View File

@@ -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);
}