Make WordPress Core

Changeset 33935


Ignore:
Timestamp:
09/07/2015 02:17:32 AM (9 years ago)
Author:
dd32
Message:

Favicon: Do not specify a Content-Length: 0 header for our "empty" response to fail more gracefully on environments with extra whitespace on output.

This allows for the web server to generate the appropriate Content-Length header for the request, allowing for strict clients/proxies/servers to process the response.

Props swissspidy.
Fixes #33626

File:
1 edited

Legend:

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

    r33627 r33935  
    133133    if ( '/favicon.ico' == $_SERVER['REQUEST_URI'] ) {
    134134        header('Content-Type: image/vnd.microsoft.icon');
    135         header('Content-Length: 0');
    136135        exit;
    137136    }
Note: See TracChangeset for help on using the changeset viewer.