From: paul Date: Wed, 11 May 2016 12:42:45 +0000 (+0000) Subject: allow pages to insert http headers X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=1a1cad8bb3939064315ccf1e2605a43da94eb332;p=cgilite allow pages to insert http headers svn path=/trunk/; revision=30 --- 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"