mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Use injected request
This commit is contained in:
parent
bf579a153f
commit
14591d9df7
2 changed files with 2 additions and 2 deletions
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ class CertificateController extends Controller {
|
|||
*/
|
||||
public function addPersonalRootCertificate() {
|
||||
$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';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue