wok-6.x rev 9599
busybox/httpd_helper.sh: local header variable
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 13 13:39:37 2011 +0200 (2011-04-13) |
parents | 13ba44bf121e |
children | 2b260f668fef |
files | busybox/stuff/httpd_helper.sh |
line diff
1.1 --- a/busybox/stuff/httpd_helper.sh Wed Apr 13 13:37:02 2011 +0200 1.2 +++ b/busybox/stuff/httpd_helper.sh Wed Apr 13 13:39:37 2011 +0200 1.3 @@ -13,6 +13,7 @@ 1.4 # header "Content-type: text/html" "Set-Cookie: name=value; HttpOnly" 1.5 header() 1.6 { 1.7 +local i 1.8 [ -z "$1" ] && set -- "Content-type: text/html" 1.9 for i in "$@" "" ; do echo -e "$i\r"; done 1.10 }