From 7827e99c802c1fdfa9b6c31e0c11de3f370fc91f Mon Sep 17 00:00:00 2001 From: Azareal Date: Mon, 13 Apr 2020 16:03:01 +1000 Subject: [PATCH] fix plugin hyperdrive content type bug --- extend/plugin_hyperdrive.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extend/plugin_hyperdrive.go b/extend/plugin_hyperdrive.go index 9fcb2f5e..a35e952a 100644 --- a/extend/plugin_hyperdrive.go +++ b/extend/plugin_hyperdrive.go @@ -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)