rc-httpd: append carriage return to content-length header

This commit is contained in:
Alex Musolino 2020-01-07 17:28:59 +10:30
parent f12744b5db
commit c43700f569

View file

@ -39,7 +39,7 @@ max_age=3600 # 1 hour
echo 'HTTP/1.1 200 OK'^$cr echo 'HTTP/1.1 200 OK'^$cr
emit_extra_headers emit_extra_headers
echo 'Content-type: '^$type^$cr 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 'Cache-control: max-age='^$max_age^$cr
echo $cr echo $cr
exec cat $full_path exec cat $full_path