s4

changeset 722:78cc4ba7bf42

Debug code and preparation of Path parameter added
author HIROSE Yuuji <yuuji@gentei.org>
date Sun, 31 May 2020 15:07:02 +0900
parents fce9d5977822
children b8f5bfb91ea2 1b294b80544e
files s4-funcs.sh
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/s4-funcs.sh	Sun May 31 10:42:15 2020 +0900
     1.2 +++ b/s4-funcs.sh	Sun May 31 15:07:02 2020 +0900
     1.3 @@ -1173,9 +1173,12 @@
     1.4    query "delete from session where expire < '$now';"
     1.5  }
     1.6  gencookie() (
     1.7 +  path=${URL#*:/}
     1.8 +  path=${URL%/*}
     1.9 +  expire="`expire '' '%a, %d-%b-%Y %H:%M:%S GMT'`"
    1.10    for kv; do
    1.11 -    expire="`expire '' '%a, %d-%b-%Y %H:%M:%S GMT'`"
    1.12 -    echo "Set-Cookie: $kv; expires=$expire"
    1.13 +    # echo "Set-Cookie: $kv; expires=$expire; Path=$path"
    1.14 +    echo "Set-Cookie: $kv; expires=$expire;"
    1.15    done
    1.16  )
    1.17  contenttype() {
    1.18 @@ -1410,6 +1413,7 @@
    1.19  		# cat > $tmpf		# too much?
    1.20  		head -c $CONTENT_LENGTH > $tmpf	# safe?
    1.21        		(echo CL=$CONTENT_LENGTH; ls -lF $tmpf) 1>&3
    1.22 +		cp tmp/stream /tmp	# 2020-0531
    1.23  		s="`cat tmp/stream`"
    1.24  		tmpfiles=$tmpfiles"${tmpfiles+ }$tmpf"
    1.25  		;;