简体   繁体   English

IE11:未传递空的 http 请求标头

[英]IE11: empty http request header not being passed

I am facing an issue on IE where in my http request the request header is being ignored in cased the value of header is empty string '' .我在 IE 上面临一个问题,其中在我的http请求中,请求标头被忽略,以防标头的值为空字符串'' This breaks my application.这打破了我的申请。 It works well on chrome.它在 chrome 上运行良好。 But fails on IE as IE seems to exclude headers with blank value from request.但在 IE 上失败,因为 IE 似乎从请求中排除了具有空白值的标头。 Any solution to fix this?任何解决方案来解决这个问题?

Services use this as a check.服务使用它作为检查。 Hence I cant change the empty header approach.因此我无法更改空标题方法。

TIA. TIA。

I could not find any solution that makes IE pass empty headers with http request.我找不到任何使 IE 使用 http 请求传递空标头的解决方案。 Hence I had to change the convention and instead pass null as a string to simulate this.因此我不得不改变约定,而是将null作为字符串传递来模拟这一点。

'null'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM