# HG changeset patch # User Pascal Bellard # Date 1302102224 -7200 # Node ID b6feaccd64616e3d87b9e3453fa74510d73addaa # Parent 8e1ed7cbcb1b2f1145488056f08cc8d7a952b0ff busybox/httpd: allow multiple headers diff -r 8e1ed7cbcb1b -r b6feaccd6461 busybox/stuff/httpd_helper.sh --- a/busybox/stuff/httpd_helper.sh Wed Apr 06 16:56:33 2011 +0200 +++ b/busybox/stuff/httpd_helper.sh Wed Apr 06 17:03:44 2011 +0200 @@ -7,9 +7,12 @@ alias urlencode='httpd -e' +# Send headers, example : +# header "Content-type: text/html" "Set-Cookie: name=value; HttpOnly" header() { -[ -z "$1" ] && echo -e "Content-type: text/html\r\n" || echo -e "$1\r\n" +[ -z "$1" ] && set -- "Content-type: text/html" +for i in "$@" "" ; do echo -e "$i\r"; done } htmlentities() diff -r 8e1ed7cbcb1b -r b6feaccd6461 tazwikiss/receipt --- a/tazwikiss/receipt Wed Apr 06 16:56:33 2011 +0200 +++ b/tazwikiss/receipt Wed Apr 06 17:03:44 2011 +0200 @@ -68,6 +68,10 @@ cat > $1/etc/httpd.conf <