diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-12-12 12:16:01 +0100 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2017-12-12 14:38:36 +0100 |
commit | 003c709d25e17e76f1c4a8c0268b360ca803f245 (patch) | |
tree | c10fa22709c8dadaa703417ea0b367308747122e /tests | |
parent | f44d5bde5604eab628a4194fb2d111aa84ca2082 (diff) | |
download | nextcloud-server-003c709d25e17e76f1c4a8c0268b360ca803f245.tar.gz nextcloud-server-003c709d25e17e76f1c4a8c0268b360ca803f245.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.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/lib/AppFramework/Http/RequestTest.php b/tests/lib/AppFramework/Http/RequestTest.php index f80bffcb480..40a9193dc92 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, + ], ]; } |