mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-11-10 11:40:53 +08:00
fix(system): Fix Cloudflare Proxy Access Issue with 1Panel When Secure Entry Is Enabled (#7458)
This commit is contained in:
parent
3396a5ffea
commit
6683696032
1 changed files with 2 additions and 2 deletions
|
|
@ -28,9 +28,9 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func toIndexHtml(c *gin.Context) {
|
func toIndexHtml(c *gin.Context) {
|
||||||
|
c.Writer.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||||
c.Writer.WriteHeader(http.StatusOK)
|
c.Writer.WriteHeader(http.StatusOK)
|
||||||
_, _ = c.Writer.Write(web.IndexByte)
|
_, _ = c.Writer.Write(web.IndexByte)
|
||||||
c.Writer.Header().Add("Accept", "text/html")
|
|
||||||
c.Writer.Flush()
|
c.Writer.Flush()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -131,9 +131,9 @@ func setWebStatic(rootRouter *gin.RouterGroup) {
|
||||||
handleNoRoute(c)
|
handleNoRoute(c)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
c.Writer.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||||
c.Writer.WriteHeader(http.StatusOK)
|
c.Writer.WriteHeader(http.StatusOK)
|
||||||
_, _ = c.Writer.Write(web.IndexByte)
|
_, _ = c.Writer.Write(web.IndexByte)
|
||||||
c.Writer.Header().Add("Accept", "text/html")
|
|
||||||
c.Writer.Flush()
|
c.Writer.Flush()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue