fix proxy Host header

This commit is contained in:
UlricQin 2022-01-10 20:16:44 +08:00
parent b9c674d662
commit 120c2fe52a
1 changed files with 1 additions and 0 deletions

View File

@ -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)