forked from I2P_Developers/i2p.i2p
Debian updates for 0.9.34
This commit is contained in:
26
debian-alt/xenial/patches/0002-jetty-old-api.patch
Normal file
26
debian-alt/xenial/patches/0002-jetty-old-api.patch
Normal file
@ -0,0 +1,26 @@
|
||||
Index: b/apps/routerconsole/java/src/net/i2p/router/web/HostCheckHandler.java
|
||||
===================================================================
|
||||
--- a/apps/routerconsole/java/src/net/i2p/router/web/HostCheckHandler.java
|
||||
+++ b/apps/routerconsole/java/src/net/i2p/router/web/HostCheckHandler.java
|
||||
@@ -44,19 +44,12 @@ public class HostCheckHandler extends Gz
|
||||
_listenHosts = new HashSet<String>(8);
|
||||
setMinGzipSize(64*1024);
|
||||
if (_context.getBooleanPropertyDefaultTrue(PROP_GZIP)) {
|
||||
- addIncludedMimeTypes(
|
||||
- // our js is very small
|
||||
- //"application/javascript", "application/x-javascript",
|
||||
- "application/xhtml+xml", "application/xml",
|
||||
- // ditto svg
|
||||
- //"image/svg+xml",
|
||||
- "text/css", "text/html", "text/plain"
|
||||
- );
|
||||
+ setMimeTypes("application/xhtml+xml,application/xml,text/css,text/html,text/plain");
|
||||
} else {
|
||||
// poorly documented, but we must put something in,
|
||||
// if empty all are matched,
|
||||
// see IncludeExcludeSet
|
||||
- addIncludedMimeTypes("xyzzy");
|
||||
+ setMimeTypes("xyzzy");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user