nieuws/feed: output content-type header value
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 13 Jun 2019 12:43:48 +0000 (14:43 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 17 Jun 2019 18:13:36 +0000 (20:13 +0200)
Worked in practice due to Apache fallback of application/xml, but prefer
more specific mime type as intended.

Thanks PHP for not spotting obvious syntax errors.

nieuws/feed/index.php

index 67687f31419c81255157fd4ce23c927d9e411cf1..0a88cd4f3e06f2ea458d3aaa0d0ed826867f5a08 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 ob_clean();
-header('Content-Type', 'application/atom+xml');
+header('Content-Type: application/atom+xml; charset=utf-8');
 print '<?xml version="1.0" encoding="utf-8"?>';
 $siteref = 'http://'.$_SERVER['HTTP_HOST'];
 ?>