Skip to content

Commit

Permalink
Merge pull request #30 from fingerprintjs/refactor/early-return-on-recv
Browse files Browse the repository at this point in the history
refactor: early return on recv
  • Loading branch information
Orkuncakilkaya authored Jul 9, 2024
2 parents b3f478a + 4a98f9a commit 005f785
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/assets/template.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,11 @@ sub vcl_recv {
if(req.url.path ~ "^/([\w|-]+)") {
if (re.group.1 == table.lookup(__config_table_name__, "INTEGRATION_PATH")) {
set req.http.X-FPJS-REQUEST = "true";
} else {
return(pass);
}
} else {
return(pass);
}

declare local var.target_path STRING;
Expand Down

0 comments on commit 005f785

Please sign in to comment.