diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-09-05 14:58:47 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-09-05 14:58:47 -0700 |
commit | 1f0bbb6a2443b47501a5d3aad9de939a8e377d7b (patch) | |
tree | a714c930fa96fc25fac75285bb256330a9c7bb13 /app/src | |
parent | b62f08ce2eb1a2d04392995d18c5c89aa478a158 (diff) | |
download | dsub-1f0bbb6a2443b47501a5d3aad9de939a8e377d7b.tar.gz dsub-1f0bbb6a2443b47501a5d3aad9de939a8e377d7b.tar.bz2 dsub-1f0bbb6a2443b47501a5d3aad9de939a8e377d7b.zip |
#537 Add a custom user agent
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/service/RESTMusicService.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/service/RESTMusicService.java b/app/src/main/java/github/daneren2005/dsub/service/RESTMusicService.java index 4597ed69..b70a2458 100644 --- a/app/src/main/java/github/daneren2005/dsub/service/RESTMusicService.java +++ b/app/src/main/java/github/daneren2005/dsub/service/RESTMusicService.java @@ -1874,6 +1874,7 @@ public class RESTMusicService implements MusicService { if(url.indexOf("getCoverArt") == -1 && url.indexOf("stream") == -1 && url.indexOf("getAvatar") == -1) { request.addHeader("Accept-Encoding", "gzip"); } + request.addHeader("User-Agent", Constants.REST_CLIENT_ID); // Set credentials to get through apache proxies that require authentication. int instance = prefs.getInt(Constants.PREFERENCES_KEY_SERVER_INSTANCE, 1); |