使用nginx过程中遇到了个问题,就是request中的header name中如果包含下划线会自动忽略掉,导致服务器接收不到该字段的内容,以下为解决方法:

nginx默认request的header内容参数下划线时会自动忽略掉,需要添加以下配置到http中
underscores_in_headers on; #默认 underscores_in_headers 为off,表示如果header name中包含下划线,则忽略掉。

 

posted on 2016-12-05 15:15  jaamy  阅读(2207)  评论(0编辑  收藏  举报