rc-httpd/handlers/serve-static: restore Content-length
This commit is contained in:
parent
ca7f016c7b
commit
0201795805
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue