nginx patch pull request about spaces in headers

Maxim Dounin mdounin at
Fri Sep 4 14:08:48 UTC 2015


On Fri, Sep 04, 2015 at 04:58:28PM +0900, 김진녕 wrote:

> Dear nginx developers, 
> This is JinNyung Kim, a developer at Naver Korea corporation. (
> I'm writing in regards to spaces in header field in nginx. 
> Actually when I modified use from apache-tomcat to nginx-tomcat last Tuesday, I had a trouble with spaces in authorization header. 
> I know the field name including spaces is not permitted, but it's problem that apache didn't ignore this and passed to tomcat.
> So, I need spaces in headers option and think that this will be helpful for the people who modify use from apache to nginx like me. 
> Also, I developed the logging option in error.log.
> spaces_in_headers will likely act underscores_in_headers. 


Try "ignore_invalid_headers off" instead.

See for details.


> I look forward to hearing from you about whether patch is accepted or not. 


Maxim Dounin

More information about the nginx-devel mailing list