1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-01-29 19:27:34 +01:00

Changin documentation for default value of allow_redirects.referer

This commit is contained in:
Mikhail Strachuk 2016-07-20 21:29:53 -07:00
parent f020b9b897
commit 9c2445194f
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ allow_redirects
[
'max' => 5,
'strict' => false,
'referer' => true,
'referer' => false,
'protocols' => ['http', 'https'],
'track_redirects' => false
]
@ -62,7 +62,7 @@ pairs:
Strict RFC compliant redirects mean that POST redirect requests are sent as
POST requests vs. doing what most browsers do which is redirect POST requests
with GET requests.
- referer: (bool, default=true) Set to false to disable adding the Referer
- referer: (bool, default=false) Set to true to enable adding the Referer
header when redirecting.
- protocols: (array, default=['http', 'https']) Specified which protocols are
allowed for redirect requests.

View File

@ -23,7 +23,7 @@ class RedirectMiddleware
'max' => 5,
'protocols' => ['http', 'https'],
'strict' => false,
'referer' => true,
'referer' => false,
'track_redirects' => false,
];