From dab068b505ee07977a62295425ccdb7369b618b8 Mon Sep 17 00:00:00 2001 From: Lars Trieloff Date: Tue, 11 Jun 2019 10:02:55 +0000 Subject: [PATCH] fix(error): use resp instead of beresp in error delivery --- layouts/fastly/helix.vcl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/fastly/helix.vcl b/layouts/fastly/helix.vcl index c6ad42d1..c39e7734 100644 --- a/layouts/fastly/helix.vcl +++ b/layouts/fastly/helix.vcl @@ -653,17 +653,17 @@ sub hlx_deliver_type { */ sub hlx_deliver_error { set req.http.X-Trace = req.http.X-Trace + "; hlx_deliver_error(" + beresp.status + ")"; - if (beresp.status == 200) { + if (resp.status == 200) { # TODO: fix headers } else { # error 954 "No error page found"; } if (req.url.basename ~ "^([0-9][0-9][0-9])") { - set beresp.status = std.atoi(re.group.1); + set resp.status = std.atoi(re.group.1); } else { # this should never happen - set beresp.status = 500; + set resp.status = 500; } }