rc-httpd/handlers/serve-static: restore Content-length

This commit is contained in:
stanley lieber 2014-02-22 02:24:37 -05:00
parent ca7f016c7b
commit 0201795805

View file

@ -25,6 +25,7 @@ if not
echo 'HTTP/1.1 200 OK'^$cr
emit_extra_headers
echo 'Content-type: '^$type^'; charset=utf-8'^$cr
echo 'Content-length: '^`{ls -l $full_path | awk '{print $6}'}
echo 'Cache-control: max-age='^$max_age^$cr
echo $cr
exec cat $full_path