From bcce8d3d80462946483a403a1fb25b3e12229136 Mon Sep 17 00:00:00 2001 From: orangain Date: Thu, 17 Dec 2015 14:48:37 +0900 Subject: [PATCH] DOC: Update MetaRefreshMiddlware's setting variables * `REDIRECT_MAX_METAREFRESH_DELAY` has been deprecated and was renamed to `METAREFRESH_MAXDELAY`. * Merge duplicate documents about `METAREFRESH_MAXDELAY` appeared both in the settings page and the downloader-middlewares page. --- docs/topics/downloader-middleware.rst | 8 +++++--- docs/topics/settings.rst | 10 ---------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/docs/topics/downloader-middleware.rst b/docs/topics/downloader-middleware.rst index cc0254d29..3641da231 100644 --- a/docs/topics/downloader-middleware.rst +++ b/docs/topics/downloader-middleware.rst @@ -787,14 +787,16 @@ Default: ``True`` Whether the Meta Refresh middleware will be enabled. -.. setting:: REDIRECT_MAX_METAREFRESH_DELAY +.. setting:: METAREFRESH_MAXDELAY -REDIRECT_MAX_METAREFRESH_DELAY -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +METAREFRESH_MAXDELAY +^^^^^^^^^^^^^^^^^^^^ Default: ``100`` The maximum meta-refresh delay (in seconds) to follow the redirection. +Some sites use meta-refresh for redirecting to a session expired page, so we +restrict automatic redirection to the maximum delay. RetryMiddleware --------------- diff --git a/docs/topics/settings.rst b/docs/topics/settings.rst index 60b5f4585..cc070d8c0 100644 --- a/docs/topics/settings.rst +++ b/docs/topics/settings.rst @@ -857,16 +857,6 @@ Defines the maximum times a request can be redirected. After this maximum the request's response is returned as is. We used Firefox default value for the same task. -.. setting:: REDIRECT_MAX_METAREFRESH_DELAY - -REDIRECT_MAX_METAREFRESH_DELAY ------------------------------- - -Default: ``100`` - -Some sites use meta-refresh for redirecting to a session expired page, so we -restrict automatic redirection to a maximum delay (in seconds) - .. setting:: REDIRECT_PRIORITY_ADJUST REDIRECT_PRIORITY_ADJUST