]> git.plutz.net Git - cgilite/commitdiff
use CRLF line breaks
authorpaul <paul@plutz.net>
Thu, 6 Oct 2016 21:28:16 +0000 (21:28 +0000)
committerpaul <paul@plutz.net>
Thu, 6 Oct 2016 21:28:16 +0000 (21:28 +0000)
svn path=/trunk/; revision=34

static.sh

index 153cce0e7428f717a64d7fa1ac95103d77808a57..e8de7d16dc727bdaf18170f59cf261862173b6dd 100755 (executable)
--- 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")}"