Why is ASP.NET replacing a Content-Length header with a Transfer-Encoding header when manually flushing a response?

后端 未结 3 1085
滥情空心
滥情空心 2021-02-07 07:40

Our web application (ASP.NET Web Forms) has a page that will display a recently generated PDF file to users. Because the PDF file is sometimes quite large, we\'ve implemented a

3条回答
  •  醉酒成梦
    2021-02-07 07:54

    From an article on MSDN it seems that you can disable chunked encoding:

    appcmd set config /section:asp /enableChunkedEncoding:False
    

    enter image description here

    But it's mentioned under ASP settings, so it may not apply to a response generated from an ASP.NET handler.

提交回复
热议问题