summaryrefslogtreecommitdiff
path: root/src/HttpSkipResponseCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-20 09:36:14 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-20 09:36:14 +0000
commit694fb307aa7e582a55bce7e995bde3a4614b3b4f (patch)
tree42bf3e703ebd706c9ebdd62bca59396f2d67a790 /src/HttpSkipResponseCommand.cc
parent580098eb4929a3bdbf424af18da361259ef2efe5 (diff)
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Replaced StringFormat with fmt
Diffstat (limited to 'src/HttpSkipResponseCommand.cc')
-rw-r--r--src/HttpSkipResponseCommand.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/HttpSkipResponseCommand.cc b/src/HttpSkipResponseCommand.cc
index 96ca1bbe..3e24bca2 100644
--- a/src/HttpSkipResponseCommand.cc
+++ b/src/HttpSkipResponseCommand.cc
@@ -45,7 +45,6 @@
#include "HttpRequest.h"
#include "Segment.h"
#include "util.h"
-#include "StringFormat.h"
#include "fmt.h"
#include "DlAbortEx.h"
#include "HttpHeader.h"
@@ -176,8 +175,7 @@ bool HttpSkipResponseCommand::processResponse()
unsigned int rnum =
httpResponse_->getHttpRequest()->getRequest()->getRedirectCount();
if(rnum >= Request::MAX_REDIRECT) {
- throw DL_ABORT_EX
- (StringFormat("Too many redirects: count=%u", rnum).str());
+ throw DL_ABORT_EX(fmt("Too many redirects: count=%u", rnum));
}
httpResponse_->processRedirect();
return prepareForRetry(0);
@@ -195,7 +193,7 @@ bool HttpSkipResponseCommand::processResponse()
throw DL_ABORT_EX2(MSG_RESOURCE_NOT_FOUND,
downloadresultcode::RESOURCE_NOT_FOUND);
} else {
- throw DL_ABORT_EX(StringFormat(EX_BAD_STATUS, statusCode).str());
+ throw DL_ABORT_EX(fmt(EX_BAD_STATUS, statusCode));
}
} else {
return prepareForRetry(0);