summaryrefslogtreecommitdiff
path: root/src/HttpResponseCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-09-01 15:06:29 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-09-01 15:06:29 +0000
commitd4215a82b757a3928a7c8a2babbd1645cf7d7e71 (patch)
tree3e2c84fdde7ed8618c93175240a0a9f32e2443f2 /src/HttpResponseCommand.h
parent6779c72b5db4d8ac9d4920e4f6a6049fa2627605 (diff)
2008-09-02 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();