Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow Accept-Encoding header to be overridden by request headers

  • Loading branch information...
commit aeb92d7c25c4be54bc129bc339fd13a3c83c54cc 1 parent 0225df1
kristofs kristofs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  library/Zend/Http/Client.php
2  library/Zend/Http/Client.php
View
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.