fix plugin hyperdrive content type bug
This commit is contained in:
parent
383fbaa4bc
commit
7827e99c80
|
@ -234,6 +234,9 @@ func jumpHdrive(pg, p []byte, args []interface{}) (skip bool, rerr c.RouteError)
|
||||||
}
|
}
|
||||||
|
|
||||||
header := args[3].(*c.Header)
|
header := args[3].(*c.Header)
|
||||||
|
if ok {
|
||||||
|
gzw.Header().Set("Content-Type", "text/html;charset=utf-8")
|
||||||
|
}
|
||||||
routes.FootHeaders(w, header)
|
routes.FootHeaders(w, header)
|
||||||
iw.Write(tList)
|
iw.Write(tList)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue