IIS 7 and Above
Content-Length Error when IIS returns response with STATUS 302
Re: Content-Length Error when IIS returns response with STATUS 302
Jun 29, 2017 07:06 AM|s.jmacov|LINK
If You change content of string, You must change Content-Length value in another place too (or use some function like length(string) ). And You do so in fact, if You good programmer.
IIS injects additional html code in my response, builded by Python-Flask, and MUST change Content-Length too!
It is not compression issue, and I don't need to trace something - IIS thinks that request and response absolutely normal.
The question is - how disable in IIS 8.5 adding additional html in response content for status code 302 or what else can I do for correct wrong IIS behavior?