diff src/luan/modules/http/tools/run.luan @ 1165:668f29bc52ea

clean up content-type
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 07 Feb 2018 23:16:12 -0700
parents 21d157b153fe
children 5dbb552075ff
line wrap: on
line diff
--- a/src/luan/modules/http/tools/run.luan	Wed Feb 07 17:36:38 2018 -0700
+++ b/src/luan/modules/http/tools/run.luan	Wed Feb 07 23:16:12 2018 -0700
@@ -61,7 +61,7 @@
 	<body>
 		<h2>Run Luan Code</h2>
 		<form name="form0" method="post">
-			<input type="hidden" name="content_type" value="text/plain" />
+			<input type="hidden" name="content_type" value="text/plain; charset=utf-8" />
 			<div>
 				<textarea name="code" rows="20" cols="90" wrap="off" autofocus></textarea>
 			</div>
@@ -91,7 +91,7 @@
 		end;
 		catch = function(e)
 			Http.response.reset()
-			Http.response.headers["content-type"] = "text/plain"
+			Http.response.headers["content-type"] = "text/plain; charset=utf-8"
 			Io.stdout = Http.response.text_writer()
 			print(e)
 			print""