git: 9front

Download patch

ref: 26d02b0a3c40a35393d73309430c6c48b2ede2be
parent: aca2a9b9dce7fc3c14f318f12d52f2af48769533
author: stanley lieber <stanley.lieber@gmail.com>
date: Tue Feb 19 13:13:32 EST 2013

rc-httpd/handlers/serve-static: charset=utf-8

--- a/rc/bin/rc-httpd/handlers/serve-static
+++ b/rc/bin/rc-httpd/handlers/serve-static
@@ -24,7 +24,7 @@
 	max_age=604800	# 1 week
 echo 'HTTP/1.1 200 OK'^$cr
 emit_extra_headers
-echo 'Content-type: '^$type^$cr
+echo 'Content-type: '^$type^'; charset=utf-8'^$cr
 echo 'Cache-control: max-age='^$max_age^$cr
 echo $cr
 exec cat $full_path
--