changeset 1082:ece3567d4df5

fix http content type
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 15 Nov 2016 19:19:19 -0700
parents ccc4573979de
children e7fb974e0c26
files src/luan/modules/http/Http.luan
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
diff -r ccc4573979de -r ece3567d4df5 src/luan/modules/http/Http.luan
--- a/src/luan/modules/http/Http.luan	Thu Nov 10 22:47:06 2016 -0700
+++ b/src/luan/modules/http/Http.luan	Tue Nov 15 19:19:19 2016 -0700
@@ -126,6 +126,7 @@
 
 		function this.text_writer()
 			this.java.setCharacterEncoding "UTF-8"
+			this.java.setContentType "text/html; charset=UTF-8"
 			this.set()
 			return IoLuan.textWriter(this.java.getWriter())
 		end