diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2014-02-22 02:24:37 -0500 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2014-02-22 02:24:37 -0500 |
commit | 0201795805f22e3d8d0b347d06c39d934c8b6866 (patch) | |
tree | 624a3e7ce0af1844947e5de4d32b165cff50da37 /rc/bin/rc-httpd/handlers | |
parent | ca7f016c7b21f7cf418201ba6ae955a9234e4304 (diff) | |
download | plan9front-0201795805f22e3d8d0b347d06c39d934c8b6866.tar.xz |
rc-httpd/handlers/serve-static: restore Content-length
Diffstat (limited to 'rc/bin/rc-httpd/handlers')
-rwxr-xr-x | rc/bin/rc-httpd/handlers/serve-static | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rc/bin/rc-httpd/handlers/serve-static b/rc/bin/rc-httpd/handlers/serve-static index 315621463..e0c755764 100755 --- a/rc/bin/rc-httpd/handlers/serve-static +++ b/rc/bin/rc-httpd/handlers/serve-static @@ -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 |