Welcome! Log In Create A New Profile

Advanced

Re: HTTP/405

Valentin V. Bartenev
August 04, 2017 01:38PM
On Friday 04 August 2017 09:42:42 Frank Liu wrote:
> Valentin,
>
> 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?
>
[..]

Why should nginx do the same? Is there any real problem with that?

According to RFC:

| An empty Allow field value indicates that the resource allows no methods,
| which might occur in a 405 response if the resource has been temporarily
| disabled by configuration.

that, as you know, isn't the case for apache.org. So, such behavior can
only mislead a client.

Unfortunately, the real world sometimes a bit different than theory of
RFC authors. Strict and blind following to RFC is fine for academic
purposes, but doesn't always work for real world applications. It's
definitely not the goal you should achieve by any price.

wbr, Valentin V. Bartenev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

HTTP/405

Frank Liu August 04, 2017 01:30AM

Re: HTTP/405

B.R. via nginx August 04, 2017 06:48AM

Re: HTTP/405

Frank Liu August 04, 2017 12:40PM

Re: HTTP/405

Valentin V. Bartenev August 04, 2017 07:08AM

Re: HTTP/405

Frank Liu August 04, 2017 12:44PM

Re: HTTP/405

Valentin V. Bartenev August 04, 2017 01:38PM

Re: HTTP/405

B.R. via nginx August 07, 2017 01:24PM

Re: HTTP/405

Valentin V. Bartenev August 07, 2017 01:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 113
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready