Skip to content

Commit 313c83d

Browse files
authored
Correct the documented default of the http follow_location option (#5845)
Not setting the option and setting it to 1 are not equivalent. When it is absent, redirects are only followed for the 300, 301, 302, 303, 307 and 308 response codes; when it is set, any response carrying a Location header is followed regardless of its response code.
1 parent 8ae3159 commit 313c83d

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

language/context/http.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,14 @@
128128
Follow <literal>Location</literal> header redirects. Set to
129129
<literal>0</literal> to disable.
130130
</para>
131-
<para>
132-
Defaults to <literal>1</literal>.
133-
</para>
131+
<simpara>
132+
When this option is not set, redirects are only followed for the
133+
<literal>300</literal>, <literal>301</literal>, <literal>302</literal>,
134+
<literal>303</literal>, <literal>307</literal> and <literal>308</literal>
135+
response codes. Setting it to <literal>1</literal> is not equivalent:
136+
any response carrying a <literal>Location</literal> header is then
137+
followed, whatever its response code.
138+
</simpara>
134139
</listitem>
135140
</varlistentry>
136141
<varlistentry xml:id="context.http.max-redirects">

0 commit comments

Comments
 (0)