From 209cd7fd39ed74f02fb31903deb5516f03fb2130 Mon Sep 17 00:00:00 2001 From: Lars Trieloff Date: Thu, 25 Apr 2019 09:58:23 +0000 Subject: [PATCH] fix(static): no slash between ref and path in static retrieval --- layouts/fastly/helix.vcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/fastly/helix.vcl b/layouts/fastly/helix.vcl index af1910c7..875f1343 100644 --- a/layouts/fastly/helix.vcl +++ b/layouts/fastly/helix.vcl @@ -417,7 +417,7 @@ sub hlx_type_static_esi { set req.http.X-Backend-URL = req.http.X-GitHub-Static-Owner + "/" + req.http.X-Github-Static-Repo + "/" + - req.http.X-GitHub-Static-Ref + "/" + + req.http.X-GitHub-Static-Ref + // no slash at the end, because the X-Orig-URL starts with one regsub(req.http.X-Orig-URL, ".esi$", ""); }