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

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-08-15
  • 2021-11-10
  • 2022-12-23
  • 2021-06-18
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-03-29
相关资源
相似解决方案