summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-08-16 20:51:43 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-08-16 20:51:43 +0200
commitfd95985a21297d6fe8e2c8234a263154923e1def (patch)
tree5b01def7986dcb5a52d0a89b231f9178e4a68715 /settings
parent0cb8f74cd174ac264b8ef27b0759cce0845bd402 (diff)
downloadnextcloud-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.php4
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);