gfrankliu at gmail.com
Fri Aug 4 16:42:42 UTC 2017
I checked the trac and basically it says very complicated to properly
implement. When I try the same curl against apache.org, they just return a
blank Allow header to compliant RFC. Maybe nginx can do the same?
curl -v -X TRACE http://apache.org
* Rebuilt URL to: http://apache.org/
* Trying 18.104.22.168...
* TCP_NODELAY set
* Connected to apache.org (22.214.171.124) port 80 (#0)
> TRACE / HTTP/1.1
> Host: apache.org
> User-Agent: curl/7.54.0
> Accept: */*
< HTTP/1.1 405 Method Not Allowed
< Date: Fri, 04 Aug 2017 16:38:42 GMT
< Server: Apache/2.4.7 (Ubuntu)
< Content-Length: 223
< Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<title>405 Method Not Allowed</title>
<h1>Method Not Allowed</h1>
<p>The requested method TRACE is not allowed for the URL /.</p>
* Connection #0 to host apache.org left intact
On Fri, Aug 4, 2017 at 4:05 AM, Valentin V. Bartenev <vbart at nginx.com>
> On Thursday 03 August 2017 22:28:41 Frank Liu wrote:
> > https://tools.ietf.org/html/rfc7231#page-59 says:
> > ... The origin server MUST generate an
> > Allow header field in a 405 response containing a list of the target
> > resource's currently supported methods.
> > nginx doesn't seem to have Allow header field. Is that against RFC?
> Please, look at the explanations in https://trac.nginx.org/nginx/
> wbr, Valentin V. Bartenev
> nginx mailing list
> nginx at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx