You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2017/03/23 20:03:24 UTC
svn commit: r1788313 - in /tomcat/trunk:
java/org/apache/coyote/http11/AbstractHttp11Protocol.java
webapps/docs/changelog.xml webapps/docs/config/http.xml
Author: markt
Date: Thu Mar 23 20:03:24 2017
New Revision: 1788313
URL: http://svn.apache.org/viewvc?rev=1788313&view=rev
Log:
Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=60851
Add application/xml and application/json to the default list of compressible MIME types.
Patch by Michael Osipov.
Modified:
tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Protocol.java
tomcat/trunk/webapps/docs/changelog.xml
tomcat/trunk/webapps/docs/config/http.xml
Modified: tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Protocol.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Protocol.java?rev=1788313&r1=1788312&r2=1788313&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Protocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Protocol.java Thu Mar 23 20:03:24 2017
@@ -244,7 +244,8 @@ public abstract class AbstractHttp11Prot
}
- private String compressibleMimeType = "text/html,text/xml,text/plain,text/css,text/javascript,application/javascript";
+ private String compressibleMimeType = "text/html,text/xml,text/plain,text/css," +
+ "text/javascript,application/javascript,application/json,application/xml";
private String[] compressibleMimeTypes = null;
public String getCompressibleMimeType() { return compressibleMimeType; }
public void setCompressibleMimeType(String valueS) {
Modified: tomcat/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1788313&r1=1788312&r2=1788313&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Thu Mar 23 20:03:24 2017
@@ -119,6 +119,11 @@
where there are multiple threads. (markt)
</fix>
<fix>
+ <bug>60851</bug>: Add <code>application/xml</code> and
+ <code>application/json</code> to the default list of compressible MIME
+ types. Patch by Michael Osipov. (markt)
+ </fix>
+ <fix>
<bug>60852</bug>: Correctly spell compressible when used in
configuration attributes and internal code. Based on a pacth by Michael
Osipov. (markt)
Modified: tomcat/trunk/webapps/docs/config/http.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/config/http.xml?rev=1788313&r1=1788312&r2=1788313&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/config/http.xml (original)
+++ tomcat/trunk/webapps/docs/config/http.xml Thu Mar 23 20:03:24 2017
@@ -352,7 +352,7 @@
compression may be used.
The default value is
<code>
- text/html,text/xml,text/plain,text/css,text/javascript,application/javascript
+ text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json,application/xml
</code>.
</p>
</attribute>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org