Permalink
Browse files

Allow Accept-Encoding header to be overridden by request headers

  • Loading branch information...
1 parent 0225df1 commit aeb92d7c25c4be54bc129bc339fd13a3c83c54cc @KristofSerre KristofSerre committed Nov 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 library/Zend/Http/Client.php
@@ -1040,7 +1040,7 @@ protected function prepareHeaders($body, $uri)
// Set the Accept-encoding header if not set - depending on whether
// zlib is available or not.
- if (! isset($this->headers['accept-encoding'])) {
+ if (!$this->getRequest()->getHeaders()->has('Accept-Encoding')) {
if (function_exists('gzinflate')) {
$headers['Accept-encoding'] = 'gzip, deflate';
} else {

0 comments on commit aeb92d7

Please sign in to comment.