Set Accept header for HTTP_Request2 (Bug #2636)
This commit is contained in:
parent
e250cb4101
commit
93a915386a
1 changed files with 3 additions and 0 deletions
|
@ -610,6 +610,9 @@ class kolab_files_engine
|
||||||
$this->request->setUrl($url);
|
$this->request->setUrl($url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// some HTTP server configurations require this header
|
||||||
|
$this->request->setHeader('accept', "application/json,text/javascript,*/*");
|
||||||
|
|
||||||
return $this->request;
|
return $this->request;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue