diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-07-27 23:28:31 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-07-27 23:28:31 +0900 |
| commit | 4ea28cb8377bc7b4654e6ae0216db6a7425d12c9 (patch) | |
| tree | 27c63eb57a315ab5ab7596ac46da2ac840d9ef19 /test/HttpRequestTest.cc | |
| parent | 02292feaba560e379acec7f7477a0c50c679d0dc (diff) | |
Don't send basic auth header to service operated on differenct port.
When --http-auth-challenge=true, aria2 only sends basic auth header
when requested. Old implementation sends basic auth header to service
operated in different port in successive request. This change avoid
this bug.
Diffstat (limited to 'test/HttpRequestTest.cc')
| -rw-r--r-- | test/HttpRequestTest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/HttpRequestTest.cc b/test/HttpRequestTest.cc index 010eae39..cf395fc5 100644 --- a/test/HttpRequestTest.cc +++ b/test/HttpRequestTest.cc @@ -244,7 +244,7 @@ void HttpRequestTest::testCreateRequest() option_->put(PREF_HTTP_PASSWD, "aria2passwd"); CPPUNIT_ASSERT(authConfigFactory_->activateBasicCred - ("localhost", "/", option_.get())); + ("localhost", 8080, "/", option_.get())); expectedText = "GET /archives/aria2-1.0.0.tar.bz2 HTTP/1.1\r\n" "User-Agent: aria2\r\n" |
