From: paul Date: Thu, 6 Oct 2016 21:28:16 +0000 (+0000) Subject: use CRLF line breaks X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=0678b538a6d0f56a629a8e4dd9ef6e7665b14208;p=cgilite use CRLF line breaks svn path=/trunk/; revision=34 --- diff --git a/static.sh b/static.sh index 153cce0..e8de7d1 100755 --- a/static.sh +++ b/static.sh @@ -28,9 +28,9 @@ declare -A suffix suffix[css]="text/css" if [ -x "$file" -o \! -r "$file" -o \! -f "$file" ]; then - printf 'HTTP/1.1 403 Forbidden\n\n' + printf 'HTTP/1.1 403 Forbidden\r\n\r\n' elif [ "$date" = "$HTTP_IF_NONE_MATCH" ]; then - printf 'HTTP/1.1 304 Not Modified\n\n' + printf 'HTTP/1.1 304 Not Modified\r\n\r\n' else length="$(stat -c %s "$file")" magic="${suffix[${file##*.}]:-$(file -bi "$file")}"