mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 21:47:37 +03:00
2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Rewritten HTTP keep-alive and pipelining routine. * src/AbstractCommand.cc * src/HttpConnection.cc * src/HttpDownloadCommand.cc * src/HttpRequest.cc * src/HttpRequestCommand.cc * src/HttpResponseCommand.cc * src/Request.cc * src/Request.h * src/RequestGroup.cc * test/HttpRequestTest.cc * test/HttpResponseTest.cc * test/RequestTest.cc
This commit is contained in:
parent
f1816a1d4b
commit
1c7c6f9898
13 changed files with 173 additions and 82 deletions
|
@ -293,7 +293,6 @@ void HttpResponseTest::testValidateResponse_good_range()
|
|||
httpRequest->setSegment(segment);
|
||||
SharedHandle<Request> request(new Request());
|
||||
request->setUrl("http://localhost/archives/aria2-1.0.0.tar.bz2");
|
||||
request->setKeepAlive(false);
|
||||
httpRequest->setRequest(request);
|
||||
httpResponse.setHttpRequest(httpRequest);
|
||||
httpHeader->setResponseStatus("206");
|
||||
|
@ -320,7 +319,6 @@ void HttpResponseTest::testValidateResponse_bad_range()
|
|||
httpRequest->setSegment(segment);
|
||||
SharedHandle<Request> request(new Request());
|
||||
request->setUrl("http://localhost/archives/aria2-1.0.0.tar.bz2");
|
||||
request->setKeepAlive(false);
|
||||
httpRequest->setRequest(request);
|
||||
httpResponse.setHttpRequest(httpRequest);
|
||||
httpHeader->setResponseStatus("206");
|
||||
|
@ -346,7 +344,6 @@ void HttpResponseTest::testValidateResponse_chunked()
|
|||
httpRequest->setSegment(segment);
|
||||
SharedHandle<Request> request(new Request());
|
||||
request->setUrl("http://localhost/archives/aria2-1.0.0.tar.bz2");
|
||||
request->setKeepAlive(false);
|
||||
httpRequest->setRequest(request);
|
||||
httpResponse.setHttpRequest(httpRequest);
|
||||
httpHeader->setResponseStatus("206");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue