summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2013-12-03 08:57:39 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2013-12-03 08:57:39 (GMT)
commit93a915386a2acd6806d6cec2ef6f55b2b13c0a9a (patch)
treebaafa690b93b50397f8481a360dfee3a4335d7da
parente250cb4101551ebe4af432d54c67cd73b044fad7 (diff)
downloadroundcubemail-plugins-kolab-93a915386a2acd6806d6cec2ef6f55b2b13c0a9a.tar.gz
Set Accept header for HTTP_Request2 (Bug #2636)
-rw-r--r--plugins/kolab_files/lib/kolab_files_engine.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/kolab_files/lib/kolab_files_engine.php b/plugins/kolab_files/lib/kolab_files_engine.php
index fc14e80..67905b0 100644
--- a/plugins/kolab_files/lib/kolab_files_engine.php
+++ b/plugins/kolab_files/lib/kolab_files_engine.php
@@ -610,6 +610,9 @@ class kolab_files_engine
$this->request->setUrl($url);
}
+ // some HTTP server configurations require this header
+ $this->request->setHeader('accept', "application/json,text/javascript,*/*");
+
return $this->request;
}