Skip to content

Commit

Permalink
Send proper header to avoid charset mismatch - http://mosquito.wordpr…
Browse files Browse the repository at this point in the history
…ess.org/view.php?id=857

git-svn-id: http://svn.automattic.com/wordpress/trunk@2320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
saxmatt committed Feb 14, 2005
1 parent df3a83a commit 41f2e62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wp-blog-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,10 @@
// Sending HTTP headers

if ( !empty($error) && '404' == $error ) {
header('HTTP/1.x 404 Not Found');
@header('HTTP/1.x 404 Not Found');
} else if ( empty($feed) ) {
@header('X-Pingback: '. get_bloginfo('pingback_url'));
@header('Content-type: text/html; charset=' . get_option('blog_charset'));
} else {
// We're showing a feed, so WP is indeed the only thing that last changed
if ( $withcomments )
Expand Down

0 comments on commit 41f2e62

Please sign in to comment.