From c43700f5690722e4226bedf07f457a206dc7b2d1 Mon Sep 17 00:00:00 2001 From: Alex Musolino Date: Tue, 7 Jan 2020 17:28:59 +1030 Subject: [PATCH] rc-httpd: append carriage return to content-length header --- rc/bin/rc-httpd/handlers/serve-static | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/bin/rc-httpd/handlers/serve-static b/rc/bin/rc-httpd/handlers/serve-static index db935d48e..119665ee3 100755 --- a/rc/bin/rc-httpd/handlers/serve-static +++ b/rc/bin/rc-httpd/handlers/serve-static @@ -39,7 +39,7 @@ max_age=3600 # 1 hour 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 -- 2.44.0