From 3976dd67a220309fe505202318c9c99bc952c7d5 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 26 May 2021 02:55:18 +0000 Subject: [PATCH] docs: use --max-redirs instead of --max-redir For consistency. Closes #7130 --- docs/cmdline-opts/write-out.d | 2 +- tests/data/test1261 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/cmdline-opts/write-out.d b/docs/cmdline-opts/write-out.d index 89ac700f6a..a9f3e884d7 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 e60c9cca9d..0fc3833a0b 100644 --- a/tests/data/test1261 +++ b/tests/data/test1261 @@ -27,10 +27,10 @@ This server reply is for testing a simple Location: following http -'redirect_url' with --location and --max-redir +'redirect_url' with --location and --max-redirs -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 -- 2.47.3