diff src/luan/modules/http/impl/Http.luan @ 1165:668f29bc52ea

clean up content-type
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 07 Feb 2018 23:16:12 -0700
parents 1f9d34a6f308
children 7ef40e1923b7
line wrap: on
line diff
--- a/src/luan/modules/http/impl/Http.luan	Wed Feb 07 17:36:38 2018 -0700
+++ b/src/luan/modules/http/impl/Http.luan	Wed Feb 07 23:16:12 2018 -0700
@@ -86,7 +86,7 @@
 		this.reset()
 		this.status = status
 		if msg ~= nil then
-			this.headers["content-type"] = "text/plain"
+			this.headers["content-type"] = "text/plain; charset=utf-8"
 			local writer = this.text_writer()
 			writer.write(msg)
 		end