Content-Type, not Content-type, as headers are case sensitive. Props foolswisdom and Nazgul. fixes #3545

git-svn-id: https://develop.svn.wordpress.org/trunk@5640 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n
2007-06-02 05:21:18 +00:00
parent 8998b56e76
commit 12c2ef6be0
15 changed files with 18 additions and 18 deletions

View File

@@ -743,7 +743,7 @@ function nocache_headers() {
function cache_javascript_headers() {
$expiresOffset = 864000; // 10 days
header("Content-type: text/javascript; charset=" . get_bloginfo('charset'));
header("Content-Type: text/javascript; charset=" . get_bloginfo('charset'));
header("Vary: Accept-Encoding"); // Handle proxies
header("Expires: " . gmdate("D, d M Y H:i:s", time() + $expiresOffset) . " GMT");
}
@@ -797,7 +797,7 @@ function do_feed_atom($for_comments) {
}
function do_robots() {
header('Content-type: text/plain; charset=utf-8');
header('Content-Type: text/plain; charset=utf-8');
do_action('do_robotstxt');