fix plugin hyperdrive content type bug

This commit is contained in:
Azareal 2020-04-13 16:03:01 +10:00
parent 383fbaa4bc
commit 7827e99c80
1 changed files with 3 additions and 0 deletions

View File

@ -234,6 +234,9 @@ func jumpHdrive(pg, p []byte, args []interface{}) (skip bool, rerr c.RouteError)
}
header := args[3].(*c.Header)
if ok {
gzw.Header().Set("Content-Type", "text/html;charset=utf-8")
}
routes.FootHeaders(w, header)
iw.Write(tList)