git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcb2ed9
)
nieuws/feed: output content-type header value
author
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 13 Jun 2019 12:43:48 +0000
(14:43 +0200)
committer
Mischa 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
patch
|
blob
|
history
diff --git
a/nieuws/feed/index.php
b/nieuws/feed/index.php
index 67687f31419c81255157fd4ce23c927d9e411cf1..0a88cd4f3e06f2ea458d3aaa0d0ed826867f5a08 100644
(file)
--- a/
nieuws/feed/index.php
+++ b/
nieuws/feed/index.php
@@
-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'];
?>