Slightly modified approach to:
http://codereview.appspot.com/1881043/show
Ensures that charset in Content-Type header is in sync w/ any explicitly-specified encoding to MutableContent/HttpResponseBuilder.
lgtm, see minor comment within. A test for the specific issue that you try to ...
15 years, 5 months ago
(2010-07-27 19:48:05 UTC)
#2
lgtm, see minor comment within.
A test for the specific issue that you try to resolve would be good too.
http://codereview.appspot.com/1903045/diff/1/2
File
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/MutableContent.java
(right):
http://codereview.appspot.com/1903045/diff/1/2#newcode115
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/MutableContent.java:115:
// Never happens.
now it can happen?
http://codereview.appspot.com/1903045/diff/1/2#newcode191
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/MutableContent.java:191:
protected void setContentBytesState(byte[] newBytes, Charset newEncoding) {
Add explanation - can be override by derived class that need to know when
encoding of content is changed.
Issue 1903045: [alternate fix] Ensure Content-Type and encoding consistency in HttpResponse
(Closed)
Created 15 years, 5 months ago by johnfargo
Modified 15 years, 5 months ago
Reviewers: gagan.goku, anupama.dutta, vikasa, dev-remailer_shindig.apache.org, zhoresh
Base URL: http://svn.apache.org/repos/asf/shindig/trunk/
Comments: 2