From 1f0bbb6a2443b47501a5d3aad9de939a8e377d7b Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sat, 5 Sep 2015 14:58:47 -0700 Subject: #537 Add a custom user agent --- app/src/main/java/github/daneren2005/dsub/service/RESTMusicService.java | 1 + 1 file changed, 1 insertion(+) (limited to 'app') 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); -- cgit v1.2.3