开发者

Error writing content through Apache

开发者 https://www.devze.com 2023-01-03 19:38 出处:网络
I am streaming out data (s开发者_Python百科ometimes png, sometimes json, sometimes xml) and I get the following error in Chrome:

I am streaming out data (s开发者_Python百科ometimes png, sometimes json, sometimes xml) and I get the following error in Chrome:

Error 321 (net::ERR_INVALID_CHUNKED_ENCODING): Unknown error.

I do not get this error when apache is not in front of my Tomcat web application (servlet), only when I deploy it to our test environment which has apache running.


I've looked everywhere for an answer to this question, I'm going to put the answer here:

The header entry:

Transfer-Encoding:chunked, chunked

was causing this error when the response was returned through Apache. Without Apache in front everything worked fine.

Should be: Transfer-Encoding:chunked

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号