[master] f0e49c1b9 builtin_vcl: Treat PRI as other unsupported methods

Walid Boudebouda walid.boudebouda at gmail.com
Mon Sep 1 13:21:06 UTC 2025


commit f0e49c1b965c0ad8883d82f13fd68b2863d5e767
Author: Walid Boudebouda <walid.boudebouda at gmail.com>
Date:   Fri Aug 29 18:54:29 2025 +0200

    builtin_vcl: Treat PRI as other unsupported methods
    
    The RFC does not mandate a specific status code, so treat it as
    others.

diff --git a/bin/varnishd/builtin.vcl b/bin/varnishd/builtin.vcl
index d99ebbf05..c21b5374c 100644
--- a/bin/varnishd/builtin.vcl
+++ b/bin/varnishd/builtin.vcl
@@ -60,10 +60,6 @@ sub vcl_req_host {
 }
 
 sub vcl_req_method {
-	if (req.method == "PRI") {
-		# This will never happen in properly formed traffic.
-		return (synth(405));
-	}
 	if (req.method != "GET" &&
 	    req.method != "HEAD" &&
 	    req.method != "PUT" &&


More information about the varnish-commit mailing list