RSS: Set proper content type header

https://validator.w3.org/feed/docs/warning/UnexpectedContentType.html
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Justin Kromlinger 2020-11-19 23:17:49 +01:00 committed by Lukas Fleischer
parent 568e0d2fa3
commit 78dbbd3dfa

View file

@ -11,6 +11,8 @@ $host = $_SERVER['HTTP_HOST'];
$feed_key = 'pkg-feed-' . $protocol; $feed_key = 'pkg-feed-' . $protocol;
header("Content-Type: application/rss+xml");
$bool = false; $bool = false;
$ret = get_cache_value($feed_key, $bool); $ret = get_cache_value($feed_key, $bool);
if ($bool) { if ($bool) {