Several years ago I started placing this code at the top of my web
pages. Can't remember where I first read about this.
<?php
if ( isset($_SERVER["HTTP_ACCEPT"]) and
stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") ) {
header("Content-type: application/xhtml+xml");
}
else {
header("Content-type: text/html");
}
?>
I have just started using the Feed API but found that it will not work
with this code in place.
See:
www.1ontheweb.net/newsfeed-1.html (without this code)
www.1ontheweb.net/newsfeed-2.html (with this code)
Why is this?
--
You received this message because you are subscribed to the Google Groups
"Google AJAX APIs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en.