svn path=/trunk/; revision=39
if [ -x "$file" -o \! -r "$file" -o \! -f "$file" ]; then
printf 'HTTP/1.1 403 Forbidden\r\n\r\n'
elif [ "$date" = "$HTTP_IF_NONE_MATCH" ]; then
- printf 'HTTP/1.1 304 Not Modified\r\n\r\n'
+ printf 'HTTP/1.1 304 Not Modified\r\n'
+ printf 'Etag: %s\r\n\r\n' "$date"
else
length="$(stat -c %s "$file")"
magic="${suffix[${file##*.}]:-$(file -bi "$file")}"