WordPress.org

Make WordPress Core

Changeset 23600


Ignore:
Timestamp:
03/04/2013 03:11:25 AM (5 years ago)
Author:
dd32
Message:

WP_HTTP: Allow developers to specify a Accept-Encoding header. Fixes #20142

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-http.php

    r23255 r23600  
    167167        WP_Http::buildCookieHeader( $r );
    168168
    169         if ( WP_Http_Encoding::is_available() )
     169        if ( ! isset( $r['headers']['Accept-Encoding'] ) && WP_Http_Encoding::is_available() )
    170170            $r['headers']['Accept-Encoding'] = WP_Http_Encoding::accept_encoding();
    171171
Note: See TracChangeset for help on using the changeset viewer.