Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

#2607 - Fixing how headers are accessed #3125

Closed
wants to merge 2 commits into from

3 participants

@jcrawford

I have modified how the headers were accessed as it was using the old method, now it is using the new method of: $this->getRequest()->getHeaders()->has('Accept-Encoding')

@Maks3w
Collaborator

Can you resend the patch against master branch?

@Maks3w
Collaborator

If you write the character #<Issue number> GitHub automatically build a link

@jcrawford jcrawford closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 30, 2012
  1. @akrabat

    Merge branch 'hotfix/3117'

    akrabat authored
    Close #3117
Commits on Dec 1, 2012
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  library/Zend/Http/Client.php
View
2  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 {
Something went wrong with that request. Please try again.