diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-10-17 16:26:51 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-10-17 16:26:51 +0000 |
| commit | 884a139e725f4c3968929dca734eef6812cf2e6f (patch) | |
| tree | 725212a598e43041bca09a082da1cf1cd6e7c8e6 /test/RequestTest.cc | |
| parent | 343228629a69870cf47640a63e32f7b237403aa5 (diff) | |
2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added HTTP/1.1 keep alive and pipelining support.
See --enable-http-keep-alive and --enable-http-pipelining
option.
* src/AbstractCommand.{h, cc}: Now it has one-to-many relation
to
Segment.
* src/HttpDownloadCommand.{h, cc}
* src/OptionHandlerFactory.cc
* src/HttpConnection.{h, cc}
* src/version_usage.cc
* src/HttpInitiateConnectionCommand.cc
* src/FtpInitiateConnectionCommand.cc
* src/Segment.h
* src/HttpRequestCommand.{h, cc}
* src/option_processing.cc
* src/prefs.h
* src/HttpResponseCommand.cc
* src/SegmentMan.{h, cc}
* src/FtpNegotiateCommand.cc
* src/HttpProxyResponseCommand.cc
* src/Request.cc
* src/HttpRequest.cc
* src/DownloadCommand.cc
* test/HttpRequestTest.cc
* test/RequestTest.cc
Diffstat (limited to 'test/RequestTest.cc')
| -rw-r--r-- | test/RequestTest.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/RequestTest.cc b/test/RequestTest.cc index 1d5d6873..f93e98e4 100644 --- a/test/RequestTest.cc +++ b/test/RequestTest.cc @@ -247,10 +247,13 @@ void RequestTest::testSetUrl16() void RequestTest::testRedirectUrl() { Request req; + req.setKeepAlive(true); bool v = req.setUrl("http://aria.rednoah.com:8080/aria2/index.html"); bool v2 = req.redirectUrl("http://aria.rednoah.co.jp/"); CPPUNIT_ASSERT(v2); + // keep-alive set to be false after redirection + CPPUNIT_ASSERT(!req.isKeepAlive()); // url must be the same CPPUNIT_ASSERT_EQUAL(string("http://aria.rednoah.com:8080/aria2/index.html"), req.getUrl()); |
