Skip to content

Commit

Permalink
builtin: Split a new vcl_beresp_error subroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
dridi committed Mar 19, 2024
1 parent dbf76ea commit bdaec65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/varnishd/builtin.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,10 @@ sub vcl_backend_error {
}

sub vcl_builtin_backend_error {
call vcl_beresp_error;
}

sub vcl_beresp_error {
set beresp.http.Content-Type = "text/html; charset=utf-8";
set beresp.http.Retry-After = "5";
set beresp.body = {"<!DOCTYPE html>
Expand Down

0 comments on commit bdaec65

Please sign in to comment.