Reviewers: [email protected], [email protected] Description: Adding a rewriter that removes charset information from meta http-equiv content type tag in html. An html document can specify its charset encoding in the html itself which is used by the browsers in case the content type header is present in the http response. This rewriter removes the charset parameter so the browser cannot get confused. This would be useful as we make sure that we return the page with correct encoding.
Links with more information about Content type header: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17 Media types: http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7 Affected files: A java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ContentTypeCharsetRemoverRewriter.java A java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ContentTypeCharsetRemoverVisitor.java M java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/UriUtils.java A java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/ContentTypeCharsetRemoverRewriterTest.java M java/gadgets/src/test/java/org/apache/shindig/gadgets/uri/UriUtilsTest.java Thanks Gagan
