diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index a9738ee1d2..7f838a6c8b 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -166,7 +166,7 @@ class WP_Http { // Construct Cookie: header if any cookies are set WP_Http::buildCookieHeader( $r ); - if ( WP_Http_Encoding::is_available() ) + if ( ! isset( $r['headers']['Accept-Encoding'] ) && WP_Http_Encoding::is_available() ) $r['headers']['Accept-Encoding'] = WP_Http_Encoding::accept_encoding(); if ( ( ! is_null( $r['body'] ) && '' != $r['body'] ) || 'POST' == $r['method'] || 'PUT' == $r['method'] ) {