- Content-Length:*) cgilite_response="$cgilite_response${BR}$l"; cgilite_cl='x';;
- $CR) if [ "$cgilite_cl" ]; then
- printf '%s %s\r\n%s\n\r\n' \
- 'HTTP/1.1' "${cgilite_status%${CR}}" \
- "$cgilite_response"
- cat; exit 0
- else
- printf '%s %s\r\n%s\n%s\r\n\r\n' \
- 'HTTP/1.1' "${cgilite_status%${CR}}" \
- "$cgilite_response" "Connection: close"
- cat; exit 1
- fi;;
+ Content-Length:*) cgilite_cl="${l}";;
+ $CR) printf '%s %s\r\n%s\n%s\n\r\n' \
+ 'HTTP/1.1' "${cgilite_status%${CR}}" \
+ "$cgilite_response" "${cgilite_cl}" |tee /dev/stderr
+ cat;
+ [ "${cgilite_cl#Connection}" = "${cgilite_cl}" ] && exit 0 || exit 1;;