summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-12-12 12:16:01 +0100
committerBjoern Schiessle <bjoern@schiessle.org>2017-12-12 12:16:01 +0100
commitf0202245ee7a74790522bc67ce3f5e44afd82a91 (patch)
tree8a70af0c2e34af9280e639377762ff0185791155 /tests
parent134bd51fe6e5cd19b610eaa6da53b2819f6db3c4 (diff)
downloadnextcloud-server-f0202245ee7a74790522bc67ce3f5e44afd82a91.tar.gz
nextcloud-server-f0202245ee7a74790522bc67ce3f5e44afd82a91.zip
allow 'Nextcloud' in the user agent string of Android
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/AppFramework/Http/RequestTest.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/lib/AppFramework/Http/RequestTest.php b/tests/lib/AppFramework/Http/RequestTest.php
index d3f36a6d886..cc55e33f354 100644
--- a/tests/lib/AppFramework/Http/RequestTest.php
+++ b/tests/lib/AppFramework/Http/RequestTest.php
@@ -859,6 +859,20 @@ class RequestTest extends \Test\TestCase {
],
false,
],
+ [
+ 'Mozilla/5.0 (Android) ownCloud-android/2.0.0',
+ [
+ Request::USER_AGENT_CLIENT_ANDROID
+ ],
+ true,
+ ],
+ [
+ 'Mozilla/5.0 (Android) Nextcloud-android/2.0.0',
+ [
+ Request::USER_AGENT_CLIENT_ANDROID
+ ],
+ true,
+ ],
];
}