]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Documented OPTIONS and TRACE handing in urlCheckRequest().
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 2 Sep 2010 20:46:42 +0000 (14:46 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 2 Sep 2010 20:46:42 +0000 (14:46 -0600)
src/url.cc

index 9f14d64aeb26cd94bc892328b5a86c73de1db7be..7c06675911361422038f9bc677cd9a0edf35810e 100644 (file)
@@ -796,6 +796,8 @@ urlCheckRequest(const HttpRequest * r)
     if (r->method == METHOD_CONNECT)
         return 1;
 
+    // we support OPTIONS and TRACE directed at us (with a 501 reply, for now)
+    // we also support forwarding OPTIONS and TRACE, except for the *-URI ones
     if (r->method == METHOD_OPTIONS || r->method == METHOD_TRACE)
         return (r->max_forwards == 0 || r->urlpath != "*");