Skip to content

[Sync-En] context.http: correct the documented default of follow_location - #1311

Merged
julionc merged 1 commit into
php:masterfrom
lacatoire:sync-en/1290-http-follow-location
Sep 18, 2026
Merged

julionc merged 1 commit into
php:masterfrom
lacatoire:sync-en/1290-http-follow-location

Conversation

@lacatoire

Copy link
Copy Markdown
Member

Translation of php/doc-en#5845 (commit 313c83d): follow_location has no default of 1; when unset, only 300, 301, 302, 303, 307 and 308 responses are followed, while setting it to 1 follows any response with a Location header. EN-Revision updated.

The $opts arrays of both examples are also realigned with the English code.

Fixes: #1290

@julionc
julionc merged commit 830dc10 into php:master Sep 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Sync EN] Correct the documented default of the http follow_location option (#5845)

2 participants