2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Possible fix for chunked encoding with Content-Length.
	* src/HttpResponseCommand.cc
pull/1/head
Tatsuhiro Tsujikawa 2010-04-02 14:19:11 +00:00
parent 6996f07f5f
commit 4c694b9585
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Possible fix for chunked encoding with Content-Length.
* src/HttpResponseCommand.cc
2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Don't send "Accept: default, gzip" by default. This is because Don't send "Accept: default, gzip" by default. This is because

View File

@ -252,7 +252,8 @@ bool HttpResponseCommand::handleDefaultEncoding
if(req->getMethod() == Request::METHOD_GET && if(req->getMethod() == Request::METHOD_GET &&
!segment.isNull() && segment->getPositionToWrite() == 0 && !segment.isNull() && segment->getPositionToWrite() == 0 &&
!req->isPipeliningEnabled()) { !req->isPipeliningEnabled()) {
command = createHttpDownloadCommand(httpResponse); command = createHttpDownloadCommand
(httpResponse, getTransferEncodingDecoder(httpResponse));
} else { } else {
_requestGroup->getSegmentMan()->cancelSegment(cuid); _requestGroup->getSegmentMan()->cancelSegment(cuid);
_fileEntry->poolRequest(req); _fileEntry->poolRequest(req);