From d882bd4a28767bc36286857c4a1748d77cf41aa7 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 4 Jun 2007 06:52:33 +0200 Subject: [PATCH] Fix the RSS content-type. --- bin/controller.rc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/controller.rc b/bin/controller.rc index d29b5a5..b05e76d 100755 --- a/bin/controller.rc +++ b/bin/controller.rc @@ -36,7 +36,7 @@ fn menu { isdir = match($0, "/$") sub("[*/]$", "") - bname = $0 + path = bname = $0 sub("^(.*/)?([0-9]+_)?", "", bname) gsub("_", " ", bname) @@ -83,7 +83,7 @@ fn genbody { ls -F `{ basename -d $body } | sed $dirfilter' s,^'$sitedir'/(.*),
  • \1
  • ,' echo '' } - if not + if not if(~ $#blogDirs 0) template.awk inc/404.tpl | rc # Technically wrong. Will spit out blog entries after 404 for /blog/foo, for instance. @@ -166,6 +166,8 @@ uri=$baseuri$"uri # Should be in a separate file. cat <<'!' | template +Content-Type: text/xml; charset=utf-8 +