Skip to content
Permalink
Browse files

Switch to text/xml content-type which is the de-facto standard now

  • Loading branch information
Isaacs, Ben
Isaacs, Ben committed Mar 22, 2018
1 parent 8d037f2 commit 0adb1c9ebd04d47a9cfec63b2220967fa5c99763
Showing with 6 additions and 2 deletions.
  1. +2 −0 README.txt
  2. +4 −2 dir2cast.php
@@ -151,6 +151,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
HISTORY
================================================================================

1.12 2018-03-22 Switched to de-facto text/xml content-type
Suggested by RobertBozic
1.11 2018-02-28 Added charset=utf-8 to the Content-type header.
Suggested by RobertBozic
1.10 2018-01-21 Added RECURSIVE_DIRECTORY_ITERATOR option for scanning nested
@@ -56,7 +56,7 @@
/* DEFAULTS *********************************************/
// error handler needs these, so let's set them now.
define('VERSION', '1.11');
define('VERSION', '1.12');
define('DIR2CAST_HOMEPAGE', 'https://github.com/ben-xo/dir2cast/');
define('GENERATOR', 'dir2cast ' . VERSION . ' by Ben XO (' . DIR2CAST_HOMEPAGE . ')');
@@ -684,7 +684,9 @@ public function addHelper(Podcast_Helper $helper)
public function http_headers()
{
header('Content-type: application/rss+xml; charset=utf-8');
// The correct content type is application/rss+xml; however, the de-facto
// standard is now text/xml. See https://stackoverflow.com/questions/595616/what-is-the-correct-mime-type-to-use-for-an-rss-feed
header('Content-type: text/xml; charset=UTF-8');
header('Last-modified: ' . $this->getLastBuildDate());
}

0 comments on commit 0adb1c9

Please sign in to comment.
You can’t perform that action at this time.