Set Accept header for HTTP_Request2 (Bug #2636)

This commit is contained in:
Aleksander Machniak 2013-12-03 09:57:39 +01:00
parent e250cb4101
commit 93a915386a

View file

@ -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;
} }