]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
docs: use --max-redirs instead of --max-redir
authorViktor Szakats <commit@vsz.me>
Wed, 26 May 2021 02:55:18 +0000 (02:55 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 26 May 2021 12:49:52 +0000 (14:49 +0200)
For consistency.

Closes #7130

docs/cmdline-opts/write-out.d
tests/data/test1261

index 89ac700f6a983f6d9c807d20d544bd3a45337c2c..a9f3e884d79ca27a9ac776f4fe12a998b9359abd 100644 (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
index e60c9cca9de92a38f15db2a901af96a96f1ef2ed..0fc3833a0b9c2fe66d34ad8d692c6916e252aa6d 100644 (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>