summaryrefslogtreecommitdiff
path: root/src/HttpResponseCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-04-02 14:19:11 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-04-02 14:19:11 +0000
commit4c694b95854c0849380b30787159d265f2bd1b5e (patch)
tree9f09bb68a696179bf49c5ae6b07645dc16345e26 /src/HttpResponseCommand.cc
parent6996f07f5f7b70c8644344658dde5d164d2b0da0 (diff)
2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Possible fix for chunked encoding with Content-Length. * src/HttpResponseCommand.cc
Diffstat (limited to 'src/HttpResponseCommand.cc')
-rw-r--r--src/HttpResponseCommand.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/HttpResponseCommand.cc b/src/HttpResponseCommand.cc
index 5a49881d..33b7c4ed 100644
--- a/src/HttpResponseCommand.cc
+++ b/src/HttpResponseCommand.cc
@@ -252,7 +252,8 @@ bool HttpResponseCommand::handleDefaultEncoding
if(req->getMethod() == Request::METHOD_GET &&
!segment.isNull() && segment->getPositionToWrite() == 0 &&
!req->isPipeliningEnabled()) {
- command = createHttpDownloadCommand(httpResponse);
+ command = createHttpDownloadCommand
+ (httpResponse, getTransferEncodingDecoder(httpResponse));
} else {
_requestGroup->getSegmentMan()->cancelSegment(cuid);
_fileEntry->poolRequest(req);