summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViktor Szakats <commit@vsz.me>2021-05-26 02:55:18 +0000
committerDaniel Stenberg <daniel@haxx.se>2021-05-26 14:49:52 +0200
commit3976dd67a220309fe505202318c9c99bc952c7d5 (patch)
tree61be50f59df5d9f33030968fca35919082d4a198
parent6043edf3dc263f5f9177a38a7ae6f8b3ba9f2785 (diff)
downloadcurl-3976dd67a220309fe505202318c9c99bc952c7d5.tar.gz
docs: use --max-redirs instead of --max-redir
For consistency. Closes #7130
-rw-r--r--docs/cmdline-opts/write-out.d2
-rw-r--r--tests/data/test12614
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/cmdline-opts/write-out.d b/docs/cmdline-opts/write-out.d
index 89ac700f6..a9f3e884d 100644
--- a/docs/cmdline-opts/write-out.d
+++ b/docs/cmdline-opts/write-out.d
@@ -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
diff --git a/tests/data/test1261 b/tests/data/test1261
index e60c9cca9..0fc3833a0 100644
--- a/tests/data/test1261
+++ b/tests/data/test1261
@@ -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>