summaryrefslogtreecommitdiff
path: root/src/HttpResponseCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-09-01 11:59:34 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-09-01 11:59:34 +0000
commita5fe2a837ddb8695eebb6f2f4d856d6ff6a19656 (patch)
tree3af3baf2a17bfc2fbb7d68417e85daae0392dc95 /src/HttpResponseCommand.h
parentcb083125821acfcfbb1e4a4d8ecbd81829df7981 (diff)
2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Made files whose name ends with ".gz", ".tgz" not inflated by Content Encoding Decoder. Removed size threshold for turning off on the fly inflation because resulting file may or may not be inflated depending on the file size and I think it is not expected by users. This change fixes segmentation fault when Metalink file contains gzipped file and its filesize is provided. * src/HttpResponseCommand.cc * src/HttpResponseCommand.h
Diffstat (limited to 'src/HttpResponseCommand.h')
-rw-r--r--src/HttpResponseCommand.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/HttpResponseCommand.h b/src/HttpResponseCommand.h
index 6cb410be..6162b2ca 100644
--- a/src/HttpResponseCommand.h
+++ b/src/HttpResponseCommand.h
@@ -36,6 +36,7 @@
#define _D_HTTP_RESPONSE_COMMAND_H_
#include "AbstractCommand.h"
+#include "Decoder.h"
namespace aria2 {
@@ -52,7 +53,12 @@ private:
bool handleOtherEncoding(const SharedHandle<HttpResponse>& httpResponse);
bool skipResponseBody(const SharedHandle<HttpResponse>& httpResponse);
- HttpDownloadCommand* createHttpDownloadCommand(const SharedHandle<HttpResponse>& httpResponse);
+ HttpDownloadCommand*
+ createHttpDownloadCommand(const SharedHandle<HttpResponse>& httpResponse,
+ const SharedHandle<Decoder>& transferEncodingDecoder
+ = SharedHandle<Decoder>(),
+ const SharedHandle<Decoder>& contentEncodingDecoder
+ = SharedHandle<Decoder>());
protected:
bool executeInternal();