ref: c43700f5690722e4226bedf07f457a206dc7b2d1
parent: f12744b5db76e862de58aaa54cbd5ddfc63905b0
author: Alex Musolino <[email protected]>
date: Tue Jan 7 12:28:59 EST 2020
rc-httpd: append carriage return to content-length header
--- a/rc/bin/rc-httpd/handlers/serve-static
+++ b/rc/bin/rc-httpd/handlers/serve-static
@@ -39,7 +39,7 @@
echo 'HTTP/1.1 200 OK'^$cr
emit_extra_headers
echo 'Content-type: '^$type^$cr
-echo 'Content-length: '^`{ls -l $full_path | awk '{print $6}'}
+echo 'Content-length: '^`{ls -l $full_path | awk '{print $6}'}^$cr
echo 'Cache-control: max-age='^$max_age^$cr
echo $cr
exec cat $full_path