Update uger agent string

This commit is contained in:
masensio 2015-03-24 14:44:05 +01:00
parent 6af93bfdde
commit 0de25b228c
3 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 9990eeb7ff68dd6e3a8056768ddce93b4e04bf99
Subproject commit decf89e39b44e0c0ce4280e69435adec4403ced8

View file

@ -9,7 +9,7 @@
<string name ="data_folder">owncloud</string>
<string name ="log_name">Owncloud_</string>
<string name ="default_display_name_for_root_folder">ownCloud</string>
<string name ="user_agent">Android-ownCloud</string>
<string name ="user_agent">Mozilla/5.0 Android-ownCloud</string>
<!-- URLs and flags related -->
<string name="server_url"></string>

View file

@ -132,11 +132,11 @@ public class MainApp extends Application {
}
String version = "";
if (pInfo != null) {
version = pInfo.versionName;
version = "/" + pInfo.versionName;
}
// Mozilla/5.0 (Android) ownCloud /1.7.0
String userAgent = "Mozilla/5.0 "+ appString + "/" + version;
String userAgent = appString + version;
return userAgent;
}