diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-16 20:51:43 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-16 20:51:43 +0200 |
commit | fd95985a21297d6fe8e2c8234a263154923e1def (patch) | |
tree | 5b01def7986dcb5a52d0a89b231f9178e4a68715 /settings | |
parent | 0cb8f74cd174ac264b8ef27b0759cce0845bd402 (diff) | |
download | nextcloud-server-fd95985a21297d6fe8e2c8234a263154923e1def.tar.gz nextcloud-server-fd95985a21297d6fe8e2c8234a263154923e1def.zip |
Remove IE8 support in CertificateController
* Also fix getMock warnings in tests
Diffstat (limited to 'settings')
-rw-r--r-- | settings/Controller/CertificateController.php | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/settings/Controller/CertificateController.php b/settings/Controller/CertificateController.php index 4a527036a7f..8121bec2ce1 100644 --- a/settings/Controller/CertificateController.php +++ b/settings/Controller/CertificateController.php @@ -86,10 +86,6 @@ class CertificateController extends Controller { */ private function addCertificate(ICertificateManager $certificateManager) { $headers = []; - 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'; - } if ($this->isCertificateImportAllowed() === false) { return new DataResponse(['message' => 'Individual certificate management disabled'], Http::STATUS_FORBIDDEN, $headers); |