Skip to content

Commit

Permalink
Merge pull request #286 from olexiyk/redirect-plugin-strict
Browse files Browse the repository at this point in the history
Added `strict` option for RedirectPlugin
  • Loading branch information
dbu committed Jul 5, 2021
2 parents 0d16f42 + b5f7d3a commit 1a81e52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/redirect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 1a81e52

Please sign in to comment.