How to set useUnsafeHeaderParsing in code

后端 未结 3 580
鱼传尺愫
鱼传尺愫 2020-12-06 09:58

I am getting the following exception:

The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF

From this question:<

3条回答
  •  误落风尘
    2020-12-06 10:47

    You need to set this is in your web.config, inside section, like this:

     
       
        
       
     
    

    If, for some reason, you do not want to do it from your config, you could do it from code by prgrammatically setting your config settings. See this page for an example.

提交回复
热议问题