Skip to content

Commit

Permalink
Merge pull request #34412 from Xenonym/fix/maintenance-empty-retry-he…
Browse files Browse the repository at this point in the history
…ader

[8.x] Maintenance mode: Fix empty Retry-After header
  • Loading branch information
taylorotwell authored Sep 20, 2020
2 parents 6b14a77 + 51c1b6f commit 0a93ee1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ if (isset($data['redirect']) && $_SERVER['REQUEST_URI'] !== $data['redirect']) {

// Output the prerendered template...
http_response_code($data['status'] ?? 503);
header('Retry-After: '.$data['retry']);

if (isset($data['retry'])) {
header('Retry-After: '.$data['retry']);
}

echo $data['template'];

Expand Down

0 comments on commit 0a93ee1

Please sign in to comment.