Make WordPress Core


Ignore:
Timestamp:
08/28/2013 04:58:51 AM (11 years ago)
Author:
dd32
Message:

WP_HTTP: When requesting a document with HTTP/1.1 include the 'Connection: Close' header (unless a Connection header is already specified) to prevent the connection being held open and hanging the request process. See #23463

File:
1 edited

Legend:

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

    r25149 r25150  
    173173        }
    174174
     175        if ( '1.1' == $r['httpversion'] && !isset( $r['headers']['connection'] ) ) {
     176            $r['headers']['connection'] = 'close';
     177        }
     178
    175179        // Construct Cookie: header if any cookies are set
    176180        WP_Http::buildCookieHeader( $r );
Note: See TracChangeset for help on using the changeset viewer.