mirror of https://github.com/aria2/aria2
2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Possible fix for chunked encoding with Content-Length. * src/HttpResponseCommand.ccpull/1/head
parent
6996f07f5f
commit
4c694b9585
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue