소스 검색

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

	Possible fix for chunked encoding with Content-Length.
	* src/HttpResponseCommand.cc
Tatsuhiro Tsujikawa 15 년 전
부모
커밋
4c694b9585
2개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 0
      ChangeLog
  2. 2 1
      src/HttpResponseCommand.cc

+ 5 - 0
ChangeLog

@@ -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>
 
 	Don't send "Accept: default, gzip" by default. This is because

+ 2 - 1
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);