提交 120c2fe5 编写于 作者: U UlricQin

fix proxy Host header

上级 b9c674d6
......@@ -35,6 +35,7 @@ func prometheusProxy(c *gin.Context) {
director := func(req *http.Request) {
req.URL.Scheme = target.Scheme
req.URL.Host = target.Host
req.Host = target.Host
req.Header.Set("Host", target.Host)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册