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