Welcome! Log In Create A New Profile

Advanced

Re: nginx erroneously reports period character as illegal in request headers

Maxim Dounin
March 20, 2018 09:02AM
Hello!

On Mon, Mar 19, 2018 at 07:05:43PM -0400, mblancett wrote:

> Nginx is reporting invalid incoming headers with RFC-compliant headers that
> use a '.' (meaning, a period) within the name.

Yes. Because, while being RFC-complaint, these headers cause
various problems, some are listed here:

http://mailman.nginx.org/pipermail/nginx/2010-January/018271.html

As such, nginx reports these headers as invalid and ignores them.
Details on which headers are considered valid can be found here:

http://nginx.org/r/ignore_invalid_headers

[...]

> I am aware that I can allow illegal requests, but standards compliance is a
> strict requirement in our enterprise.

No, you can't allow illegal requests. You can, however, switch
off "ignore_invalid_headers", so nginx will accept and use headers
with any characters.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx erroneously reports period character as illegal in request headers

mblancett March 19, 2018 07:05PM

Re: nginx erroneously reports period character as illegal in request headers

Maxim Dounin March 20, 2018 09:02AM

Re: nginx erroneously reports period character as illegal in request headers

mblancett March 20, 2018 01:31PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 288
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