Skip to content

Commit 4356e4f

Browse files
author
16406
committed
兼容不同字符集,解决乱码 loveshell#72
1 parent b613472 commit 4356e4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ html=read_rule('returnhtml')
8080

8181
function say_html()
8282
if Redirect then
83-
ngx.header.content_type = "text/html"
83+
ngx.header.content_type = "text/html; charset=UTF-8"
8484
ngx.status = ngx.HTTP_FORBIDDEN
8585
ngx.say(html)
8686
ngx.exit(ngx.status)

0 commit comments

Comments
 (0)