Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Commit

Permalink
fix(error): use new error subroutin
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed Jun 11, 2019
1 parent c425f2d commit 29cac81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/fastly/helix.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ sub hlx_deliver_type {
} elsif (req.http.X-Request-Type == "Static") {
call hlx_deliver_static;
} elsif (req.http.X-Request-Type == "Error") {
call hlx_deliver_static;
call hlx_deliver_error;
} elsif ((resp.status == 404 || resp.status == 204) && !req.http.X-Disable-Static && req.restarts < 1 && req.http.X-Request-Type != "Proxy") {
# That was a miss. Let's try to restart, but only restart once
set resp.http.X-Status = resp.status + "-Restart " + req.restarts;
Expand Down

0 comments on commit 29cac81

Please sign in to comment.