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

Commit

Permalink
fix(vcl): fix req.http.X-Action-Root
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed Jun 24, 2019
1 parent 53a3dbe commit c6c7e7d
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 @@ -894,8 +894,8 @@ sub hlx_type_dispatch {

# sets X-Action-Root to something like trieloff/b7aa8a6351215b7e12b6d3be242c622410c1eb28
call hlx_action_root;
set var.namespace = regsuball(req.X-Action-Root, "/.*$", ""); // cut away the slash and everything after it
set var.package = regsuball(var.path, "^.*/", ""); // cut away everything from the start up to (including) the slash
set var.namespace = regsuball(req.http.X-Action-Root, "/.*$", ""); // cut away the slash and everything after it
set var.package = regsuball(req.http.X-Action-Root, "^.*/", ""); // cut away everything from the start up to (including) the slash


# get (strain-specific) parameter whitelist
Expand Down

0 comments on commit c6c7e7d

Please sign in to comment.