Skip to content

Commit

Permalink
Merge pull request mattiasgeniar#40 from erikkn/patch-1
Browse files Browse the repository at this point in the history
Update default.vcl
  • Loading branch information
mattiasgeniar authored Apr 15, 2017
2 parents 4bdeb2d + e5aa078 commit ad44912
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ sub vcl_recv {
req.method != "PATCH" &&
req.method != "DELETE") {
/* Non-RFC2616 or CONNECT which is weird. */
return (pipe);
/*Why send the packet upstream, while the visitor is using a non-valid HTTP method? */
return(synth(404, "Non-valid HTTP method!"));
}

# Implementing websocket support (https://www.varnish-cache.org/docs/4.0/users-guide/vcl-example-websockets.html)
Expand Down

0 comments on commit ad44912

Please sign in to comment.