Skip to content

Commit

Permalink
Merge pull request mattiasgeniar#50 from kristofvandam/master
Browse files Browse the repository at this point in the history
check if method is PURGE in sub vcl_purge
  • Loading branch information
mattiasgeniar authored Mar 13, 2018
2 parents 858a4e2 + 18efd04 commit 0048c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ sub vcl_deliver {

sub vcl_purge {
# Only handle actual PURGE HTTP methods, everything else is discarded
if (req.method != "PURGE") {
if (req.method == "PURGE") {
# restart request
set req.http.X-Purge = "Yes";
return (restart);
Expand Down

0 comments on commit 0048c89

Please sign in to comment.