From 4c694b95854c0849380b30787159d265f2bd1b5e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 2 Apr 2010 14:19:11 +0000 Subject: 2010-04-02 Tatsuhiro Tsujikawa Possible fix for chunked encoding with Content-Length. * src/HttpResponseCommand.cc --- src/HttpResponseCommand.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/HttpResponseCommand.cc') 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); -- cgit