Mercurial Hosting > luan
comparison src/luan/modules/http/Http.luan @ 1082:ece3567d4df5
fix http content type
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 15 Nov 2016 19:19:19 -0700 |
parents | ccc4573979de |
children | bae2d0c2576c |
comparison
equal
deleted
inserted
replaced
1081:ccc4573979de | 1082:ece3567d4df5 |
---|---|
124 M.sent_headers(this.headers) | 124 M.sent_headers(this.headers) |
125 end | 125 end |
126 | 126 |
127 function this.text_writer() | 127 function this.text_writer() |
128 this.java.setCharacterEncoding "UTF-8" | 128 this.java.setCharacterEncoding "UTF-8" |
129 this.java.setContentType "text/html; charset=UTF-8" | |
129 this.set() | 130 this.set() |
130 return IoLuan.textWriter(this.java.getWriter()) | 131 return IoLuan.textWriter(this.java.getWriter()) |
131 end | 132 end |
132 | 133 |
133 function this.binary_writer() | 134 function this.binary_writer() |