diff options
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()); |
