aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-10-29 22:13:35 +0100
committerChristian Schneppe <christian@pix-art.de>2017-10-29 22:14:40 +0100
commita96a8243f682c63f3e16863a4238498036fee56e (patch)
tree13930d56316c09af7fcfa39b4fabc617bcd21fbf /src/main/java/de
parent92bc76d10f5058217864021ae1a097a5d6134f8b (diff)
UpdateService: set user-agent
Diffstat (limited to 'src/main/java/de')
-rw-r--r--src/main/java/de/pixart/messenger/services/UpdateService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/UpdateService.java b/src/main/java/de/pixart/messenger/services/UpdateService.java
index 9ce27b6c9..d4cf2afef 100644
--- a/src/main/java/de/pixart/messenger/services/UpdateService.java
+++ b/src/main/java/de/pixart/messenger/services/UpdateService.java
@@ -63,6 +63,7 @@ public class UpdateService extends AsyncTask<String, Object, UpdateService.Wrapp
connection = (HttpsURLConnection)url.openConnection();
connection.setConnectTimeout(Config.SOCKET_TIMEOUT * 1000);
connection.setReadTimeout(Config.SOCKET_TIMEOUT * 1000);
+ connection.setRequestProperty("User-Agent", context.getString(R.string.app_name));
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String line;
while ((line = reader.readLine()) != null) {