summaryrefslogtreecommitdiffstats
path: root/core/avatar/avatarcontroller.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/avatar/avatarcontroller.php')
-rw-r--r--core/avatar/avatarcontroller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/avatar/avatarcontroller.php b/core/avatar/avatarcontroller.php
index eb2cb657104..97b3615c032 100644
--- a/core/avatar/avatarcontroller.php
+++ b/core/avatar/avatarcontroller.php
@@ -141,7 +141,7 @@ class AvatarController extends Controller {
$files = $this->request->getUploadedFile('files');
$headers = [];
- if (\OC::$server->getRequest()->isUserAgent([\OC\AppFramework\Http\Request::USER_AGENT_IE_8])) {
+ if ($this->request->isUserAgent([\OC\AppFramework\Http\Request::USER_AGENT_IE_8])) {
// due to upload iframe workaround, need to set content-type to text/plain
$headers['Content-Type'] = 'text/plain';
}