mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
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 Built from https://develop.svn.wordpress.org/trunk@33935 git-svn-id: http://core.svn.wordpress.org/trunk@33904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a3f82f92f1
commit
36bda54e88
@ -132,7 +132,6 @@ function wp_check_php_mysql_versions() {
|
||||
function wp_favicon_request() {
|
||||
if ( '/favicon.ico' == $_SERVER['REQUEST_URI'] ) {
|
||||
header('Content-Type: image/vnd.microsoft.icon');
|
||||
header('Content-Length: 0');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-33934';
|
||||
$wp_version = '4.4-alpha-33935';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user