]> git.lizzy.rs Git - plan9front.git/blobdiff - rc/bin/rc-httpd/handlers/serve-static
rc-httpd/handlers/serve-static: restore Content-length
[plan9front.git] / rc / bin / rc-httpd / handlers / serve-static
index 31562146320973222ae7edf7b71afd5b1bc3e471..e0c7557648ef6e2c853c9fac439d56a66dd6024a 100755 (executable)
@@ -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