From b5f7d3aae8ac8f6c65f3f99f7af15b741c37ce8b Mon Sep 17 00:00:00 2001 From: Olexiy Kyrychenko Date: Mon, 5 Jul 2021 10:02:04 +0200 Subject: [PATCH] Added `strict` option for RedirectPlugin --- plugins/redirect.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/redirect.rst b/plugins/redirect.rst index cb41652..cfe9a05 100644 --- a/plugins/redirect.rst +++ b/plugins/redirect.rst @@ -42,3 +42,9 @@ request. Whether to follow the default direction on the multiple redirection status code 300. If set to false, a status of 300 will raise the ``Http\Client\Common\Exception\MultipleRedirectionException``. + +``strict``: bool (default: false) + +When set to ``true``, 300, 301 and 302 status codes will not modify original request's method and +body on consecutive requests. E. g. POST redirect requests are sent as POST requests instead of +POST redirect requests are sent as GET requests.