From: Alex Rousskov Date: Thu, 2 Sep 2010 20:46:42 +0000 (-0600) Subject: Documented OPTIONS and TRACE handing in urlCheckRequest(). X-Git-Tag: take1~299 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77ce6ba95b4e35e2f4a54213c37d1bc0ec601d65;p=thirdparty%2Fsquid.git Documented OPTIONS and TRACE handing in urlCheckRequest(). --- diff --git a/src/url.cc b/src/url.cc index 9f14d64aeb..7c06675911 100644 --- a/src/url.cc +++ b/src/url.cc @@ -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 != "*");