summaryrefslogtreecommitdiffstats
path: root/web/html/rss.php
diff options
context:
space:
mode:
authorJustin Kromlinger <hashworks@archlinux.org>2020-11-19 23:17:49 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2021-02-20 17:25:21 +0100
commit78dbbd3dfa916e0b054a231ff7cd56049ff7dc2f (patch)
tree2d2395996f1bff8b27ee989b720f3b2043767d37 /web/html/rss.php
parent568e0d2fa33d17ea4c45d046d9870d8ba0376789 (diff)
downloadaur-78dbbd3dfa916e0b054a231ff7cd56049ff7dc2f.tar.gz
aur-78dbbd3dfa916e0b054a231ff7cd56049ff7dc2f.tar.xz
RSS: Set proper content type header
https://validator.w3.org/feed/docs/warning/UnexpectedContentType.html Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/html/rss.php')
-rw-r--r--web/html/rss.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/html/rss.php b/web/html/rss.php
index d6e7825a..245a2171 100644
--- a/web/html/rss.php
+++ b/web/html/rss.php
@@ -11,6 +11,8 @@ $host = $_SERVER['HTTP_HOST'];
$feed_key = 'pkg-feed-' . $protocol;
+header("Content-Type: application/rss+xml");
+
$bool = false;
$ret = get_cache_value($feed_key, $bool);
if ($bool) {