summaryrefslogtreecommitdiff
path: root/src/HttpResponseCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-07-25 00:03:13 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-07-25 00:03:13 +0900
commit5a4a627d722b2b03bd37dfc416a3271bd6500093 (patch)
treefc4e6932c86363c6bfbd9b44fceb3bb3239abdc8 /src/HttpResponseCommand.cc
parent9fc4384c133d961df67471ef96d80629c5b6a71a (diff)
Remove Metalink content-type after first server response.
We don't accept Metalink content-type after first server response.
Diffstat (limited to 'src/HttpResponseCommand.cc')
-rw-r--r--src/HttpResponseCommand.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/HttpResponseCommand.cc b/src/HttpResponseCommand.cc
index 26523f52..88c19a21 100644
--- a/src/HttpResponseCommand.cc
+++ b/src/HttpResponseCommand.cc
@@ -204,6 +204,7 @@ bool HttpResponseCommand::executeInternal()
}
}
if(!getPieceStorage()) {
+ util::removeMetalinkContentTypes(getRequestGroup());
uint64_t totalLength = httpResponse->getEntityLength();
getFileEntry()->setLength(totalLength);
if(getFileEntry()->getPath().empty()) {