# HG changeset patch # User Pascal Bellard # Date 1302694777 -7200 # Node ID ba0a532b57c4669d477d5c13975f27a6c7959ac6 # Parent 13ba44bf121e0c487428212c6f63d6f95f2aeed0 busybox/httpd_helper.sh: local header variable diff -r 13ba44bf121e -r ba0a532b57c4 busybox/stuff/httpd_helper.sh --- a/busybox/stuff/httpd_helper.sh Wed Apr 13 13:37:02 2011 +0200 +++ b/busybox/stuff/httpd_helper.sh Wed Apr 13 13:39:37 2011 +0200 @@ -13,6 +13,7 @@ # header "Content-type: text/html" "Set-Cookie: name=value; HttpOnly" header() { +local i [ -z "$1" ] && set -- "Content-type: text/html" for i in "$@" "" ; do echo -e "$i\r"; done }