diff --git a/src/wp-includes/class-http.php b/src/wp-includes/class-http.php index 0c57ccc906..b1bfef3e1f 100644 --- a/src/wp-includes/class-http.php +++ b/src/wp-includes/class-http.php @@ -172,6 +172,10 @@ class WP_Http { unset( $r['headers']['user-agent'] ); } + if ( '1.1' == $r['httpversion'] && !isset( $r['headers']['connection'] ) ) { + $r['headers']['connection'] = 'close'; + } + // Construct Cookie: header if any cookies are set WP_Http::buildCookieHeader( $r );