aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-09-10 20:21:02 -0700
committerScott Jackson <daneren2005@gmail.com>2014-09-10 20:21:02 -0700
commit7b16f06f8d02f8861174b3b84da5b25eb7260ec1 (patch)
tree2bf94f9f2df14d89b22783529a0384443772a9c2 /src
parent51daaa5023774fece5ea31d117f82a82cc66d7d9 (diff)
downloaddsub-7b16f06f8d02f8861174b3b84da5b25eb7260ec1.tar.gz
dsub-7b16f06f8d02f8861174b3b84da5b25eb7260ec1.tar.bz2
dsub-7b16f06f8d02f8861174b3b84da5b25eb7260ec1.zip
Exclude media from gzip compression
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/service/RESTMusicService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/RESTMusicService.java b/src/github/daneren2005/dsub/service/RESTMusicService.java
index 9509b41a..3d0fc8ed 100644
--- a/src/github/daneren2005/dsub/service/RESTMusicService.java
+++ b/src/github/daneren2005/dsub/service/RESTMusicService.java
@@ -1563,7 +1563,9 @@ public class RESTMusicService implements MusicService {
request.addHeader(header);
}
}
- request.addHeader("Accept-Encoding", "gzip");
+ if(url.indexOf("getCoverArt") == -1 && url.indexOf("stream") == -1 && url.indexOf("getAvatar") == -1) {
+ request.addHeader("Accept-Encoding", "gzip");
+ }
// Set credentials to get through apache proxies that require authentication.
int instance = prefs.getInt(Constants.PREFERENCES_KEY_SERVER_INSTANCE, 1);