summaryrefslogtreecommitdiff
path: root/src/HttpDownloadCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-12-15 15:38:07 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-12-15 15:38:07 +0000
commit5a639a3d1e2af05fcc48f9821be5d6afc1cdef87 (patch)
tree589cacb3587323c01cf6689b0f15cd1ce5775c8b /src/HttpDownloadCommand.h
parent110749df84956cf4c9d2c3f2070a64179d7cd5f1 (diff)
2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that causes corrupted downloads if HTTP pipelining is enabled and the server doesn't support keep-alive. * src/AbstractCommand.cc * src/DownloadCommand.cc * src/HttpDownloadCommand.cc * src/HttpDownloadCommand.h * src/HttpResponseCommand.cc * src/Request.cc * src/Request.h * test/RequestTest.cc
Diffstat (limited to 'src/HttpDownloadCommand.h')
-rw-r--r--src/HttpDownloadCommand.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/HttpDownloadCommand.h b/src/HttpDownloadCommand.h
index dbb2ae31..c4343e31 100644
--- a/src/HttpDownloadCommand.h
+++ b/src/HttpDownloadCommand.h
@@ -39,10 +39,12 @@
namespace aria2 {
+class HttpResponse;
class HttpConnection;
class HttpDownloadCommand : public DownloadCommand {
private:
+ SharedHandle<HttpResponse> _httpResponse;
SharedHandle<HttpConnection> _httpConnection;
protected:
virtual bool prepareForNextSegment();
@@ -50,6 +52,7 @@ public:
HttpDownloadCommand(int cuid,
const SharedHandle<Request>& req,
RequestGroup* requestGroup,
+ const SharedHandle<HttpResponse>& httpResponse,
const SharedHandle<HttpConnection>& httpConnection,
DownloadEngine* e,
const SharedHandle<SocketCore>& s);