背景:自己搭建的开发环境绑定了host,通过项目域名curl调试,发现部分clientheader信息丢失.
经过排查发现nginx默认underscores_in_headers off,所以只要是clientheader中的key带有"_"时,服务单就无法获取该header信息.
解决方案: 在对因的项目nginx conf配置中添加underscores_in_headers on即可
背景:自己搭建的开发环境绑定了host,通过项目域名curl调试,发现部分clientheader信息丢失.
经过排查发现nginx默认underscores_in_headers off,所以只要是clientheader中的key带有"_"时,服务单就无法获取该header信息.
解决方案: 在对因的项目nginx conf配置中添加underscores_in_headers on即可