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

Commit

Permalink
fix(static): remove brackets in URL
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed Apr 25, 2019
1 parent 7846b80 commit 4009ff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/fastly/helix.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ sub hlx_type_static_esi {
req.http.X-GitHub-Static-Owner + "/" +
req.http.X-Github-Static-Repo + "/" +
req.http.X-GitHub-Static-Ref + // no slash at the end, because the X-Orig-URL starts with one
">" + req.http.X-Github-Static-Root + "<"
req.http.X-Github-Static-Root +
regsub(req.http.X-Orig-URL, ".esi$", "");
}

Expand Down Expand Up @@ -534,7 +534,7 @@ sub hlx_fetch_static {

sub hlx_deliver_static {
set req.http.X-Trace = req.http.X-Trace + "; hlx_deliver_static";
elsif (req.http.X-Request-Type == "Static-ESI" && resp.status == 200) {
if (req.http.X-Request-Type == "Static-ESI" && resp.status == 200) {
set req.http.X-Trace = req.http.X-Trace + "(esi)";
# Get the ETag response header and use it to construct a stable URL
declare local var.ext STRING;
Expand Down

0 comments on commit 4009ff5

Please sign in to comment.