docs: use --max-redirs instead of --max-redir

For consistency.

Closes #7130
This commit is contained in:
Viktor Szakats 2021-05-26 02:55:18 +00:00 committed by Daniel Stenberg
parent 6043edf3dc
commit 3976dd67a2
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 3 additions and 3 deletions

View File

@ -90,7 +90,7 @@ requested. 0 means the verification was successful. (Added in 7.52.0)
.TP
.B redirect_url
When an HTTP request was made without --location to follow redirects (or when
--max-redir is met), this variable will show the actual URL a redirect
--max-redirs is met), this variable will show the actual URL a redirect
*would* have gone to. (Added in 7.18.2)
.TP
.B referer

View File

@ -27,10 +27,10 @@ This server reply is for testing a simple Location: following
http
</server>
<name>
'redirect_url' with --location and --max-redir
'redirect_url' with --location and --max-redirs
</name>
<command>
http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER -w '%{redirect_url}\n' --location --max-redir 0
http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER -w '%{redirect_url}\n' --location --max-redirs 0
</command>
</client>