summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2015-02-19 10:02:54 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2015-02-19 10:02:54 (GMT)
commit5966cff343a2c44c7160c7db56f0c563a1d5dcb0 (patch)
tree26afbd7edea7c485009d91bccc222e9535afe4c8 /plugins
parenta6c9c36ea81ad0288582fe88f68fb93f74b2d88c (diff)
downloadroundcubemail-plugins-kolab-5966cff343a2c44c7160c7db56f0c563a1d5dcb0.tar.gz
Fix handling of compressed HTTP responses with HTTP_Request2's SplObserver (#4507)
This fixes broken attachment bodies when attached "from cloud" and Chwala API responses are compressed. This is done by forcing use of CURL adapter for HTTP_Request2 object.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/libkolab/libkolab.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/libkolab/libkolab.php b/plugins/libkolab/libkolab.php
index 052724c..20e7d37 100644
--- a/plugins/libkolab/libkolab.php
+++ b/plugins/libkolab/libkolab.php
@@ -92,6 +92,10 @@ class libkolab extends rcube_plugin
$http_config = array_merge($http_config, $config);
}
+ // force CURL adapter, this allows to handle correctly
+ // compressed responses with SplObserver registered (kolab_files) (#4507)
+ $http_config['adapter'] = 'HTTP_Request2_Adapter_Curl';
+
$key = md5(serialize($http_config));
if (!($request = self::$http_requests[$key])) {