comparison src/luan/modules/http/tools/Dump_mod.luan @ 1165:668f29bc52ea

clean up content-type
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 07 Feb 2018 23:16:12 -0700
parents 4beabb087be6
children
comparison
equal deleted inserted replaced
1164:1f9d34a6f308 1165:668f29bc52ea
7 7
8 8
9 local Dump_mod = {} 9 local Dump_mod = {}
10 10
11 function Dump_mod.respond() 11 function Dump_mod.respond()
12 Http.response.headers["content-type"] = "text/plain" 12 Http.response.headers["content-type"] = "text/plain; charset=utf-8"
13 Io.stdout = Http.response.text_writer() 13 Io.stdout = Http.response.text_writer()
14 14
15 local method = Http.request.method 15 local method = Http.request.method
16 local path = Http.request.full_path() 16 local path = Http.request.full_path()
17 %> 17 %>