From d4e7b51eb9eef7eb3fd680b33fe85ad8dc6c5927 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 31 Oct 2012 16:44:28 +0900 Subject: [PATCH] Made --http-no-cache false by default --- doc/manual-src/en/aria2c.rst | 4 ++-- src/OptionHandlerFactory.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/manual-src/en/aria2c.rst b/doc/manual-src/en/aria2c.rst index c49ddb05..9989c770 100644 --- a/doc/manual-src/en/aria2c.rst +++ b/doc/manual-src/en/aria2c.rst @@ -379,10 +379,10 @@ HTTP Specific Options .. option:: --http-no-cache[=true|false] - Send Cache-Control: no-cache and Pragma: no-cache header to avoid + Send ``Cache-Control: no-cache`` and ``Pragma: no-cache`` header to avoid cached content. If ``false`` is given, these headers are not sent and you can add Cache-Control header with a directive you like - using :option:`--header` option. Default: ``true`` + using :option:`--header` option. Default: ``false`` .. option:: --http-user= diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index d0fe9f3e..8b5fad6f 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -1188,7 +1188,7 @@ std::vector OptionHandlerFactory::createOptionHandlers() OptionHandler* op(new BooleanOptionHandler (PREF_HTTP_NO_CACHE, TEXT_HTTP_NO_CACHE, - A2_V_TRUE, + A2_V_FALSE, OptionHandler::OPT_ARG)); op->addTag(TAG_HTTP); op->setInitialOption(true);