From 1a1cad8bb3939064315ccf1e2605a43da94eb332 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 11 May 2016 12:42:45 +0000 Subject: [PATCH] allow pages to insert http headers svn path=/trunk/; revision=30 --- page.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/page.sh b/page.sh index 94d864d..f68df8e 100755 --- a/page.sh +++ b/page.sh @@ -17,8 +17,6 @@ # You should have received a copy of the GNU Affero General Public License # along with shcgi. If not, see . -printf "Content-Type: text/html;charset=utf-8\n\n" - [ -z "$NAVIGATION" ] \ && NAVIGATION=($(printf %s\\n "${_EXEC}"/pages/*.sh |sed -r 's;^.*/([^/]*)\.sh$;\1;')) @@ -26,4 +24,6 @@ CSS="${CSS:-${_EXEC}/templates/${PAGE}.css.sh}" BODY="${BODY:-${_EXEC}/templates/${PAGE}.html.sh}" . "${_EXEC}/pages/${PAGE}.sh" + +printf "Content-Type: text/html;charset=utf-8\r\n\r\n" . "${_EXEC}/templates/frame.html.sh" -- 2.39.2