开发者

Error writing content through Apache

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜