summaryrefslogtreecommitdiff
path: root/test/HttpRequestTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-02-19 12:02:22 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-02-19 12:02:22 +0000
commit120e2de09646b200a78e971d24b061a1d9e47b67 (patch)
treeade6510fefb3c6a9f6e355110ccb219812facb80 /test/HttpRequestTest.cc
parentdeb0625edb39039b8857ce914e07557d22123555 (diff)
2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added --http-auth-challenge option. If it is set to true(by default), aria2 sends HTTP authorization header only when it is requested by the server. If false is set, then authorization header is always sent to the server. This is useful for servers that don't respond 401 code when authentication is required. There is an exception: if username and password are embedded in URI, authorization header is always sent to the server regardless of this option. * src/AuthConfigFactory.cc * src/HttpSkipResponseCommand.cc * src/OptionHandlerFactory.cc * src/prefs.cc * src/prefs.h * src/usage_text.h * test/AuthConfigFactoryTest.cc * test/HttpRequestTest.cc
Diffstat (limited to 'test/HttpRequestTest.cc')
-rw-r--r--test/HttpRequestTest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/HttpRequestTest.cc b/test/HttpRequestTest.cc
index 57fe66f4..ba24a04c 100644
--- a/test/HttpRequestTest.cc
+++ b/test/HttpRequestTest.cc
@@ -41,7 +41,8 @@ private:
public:
void setUp()
{
- _option.reset(new Option());
+ _option.reset(new Option());
+ _option->put(PREF_HTTP_AUTH_CHALLENGE, V_TRUE);
_authConfigFactory.reset(new AuthConfigFactory(_option.get()));
}