Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] Maintenance mode: Fix empty Retry-After header #34412

Merged
merged 2 commits into from
Sep 20, 2020
Merged

[8.x] Maintenance mode: Fix empty Retry-After header #34412

merged 2 commits into from
Sep 20, 2020

Conversation

Xenonym
Copy link
Contributor

@Xenonym Xenonym commented Sep 19, 2020

When maintenance mode is enabled with a prerendered template, an empty Retry-After header is sent when the site is accessed.

This is because if --render is the only option set, the Retry-After header is always sent, regardless of whether --retry was set.

Let's check for the presence of a retry value before sending the Retry-After header.

Xenonym and others added 2 commits September 19, 2020 17:05
When maintenance mode is enabled with a prerendered template, an empty
Retry-After header is sent when the site is accessed.

This is because if `--render` is the only option set, the Retry-After
header is always sent, regardless of whether `--retry` was set.

Let's check for the presence of a `retry` value before sending the
`Retry-After` header.
@taylorotwell taylorotwell merged commit 0a93ee1 into laravel:8.x Sep 20, 2020
@Xenonym Xenonym deleted the fix/maintenance-empty-retry-header branch September 21, 2020 03:41
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.

None yet

2 participants