From 120e2de09646b200a78e971d24b061a1d9e47b67 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 19 Feb 2009 12:02:22 +0000 Subject: 2009-02-19 Tatsuhiro Tsujikawa 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 --- test/HttpRequestTest.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/HttpRequestTest.cc') 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())); } -- cgit