mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
568e0d2fa3
commit
78dbbd3dfa
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue