Changeset 4822e47


Ignore:
Timestamp:
Sep 24, 2011 9:46:25 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
ce5acb4
Parents:
a2c867c
Message:

more mime types not to compress

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPServer.java

    ra2c867c r4822e47  
    337337        protected boolean shouldCompress() {
    338338            return (_dataExpected < 0 || _dataExpected >= MIN_TO_COMPRESS) &&
    339                    (_contentType == null || !_contentType.startsWith("image/"));
     339                   (_contentType == null ||
     340                    ((!_contentType.startsWith("audio/")) &&
     341                     (!_contentType.startsWith("image/")) &&
     342                     (!_contentType.startsWith("video/")) &&
     343                     (!_contentType.equals("application/compress")) &&
     344                     (!_contentType.equals("application/bzip2")) &&
     345                     (!_contentType.equals("application/gzip")) &&
     346                     (!_contentType.equals("application/x-bzip")) &&
     347                     (!_contentType.equals("application/x-bzip2")) &&
     348                     (!_contentType.equals("application/x-gzip")) &&
     349                     (!_contentType.equals("application/zip"))));
    340350        }
    341351
Note: See TracChangeset for help on using the changeset viewer.