tests: rework tests for proxy controller

This commit is contained in:
Stavros
2026-03-14 13:27:14 +02:00
parent 134befe72f
commit 1c7ef9693d
2 changed files with 208 additions and 85 deletions

View File

@@ -388,7 +388,11 @@ func (controller *ProxyController) getExtAuthzContext(c *gin.Context) (ProxyCont
}
// It sets the host to the original host, not the forwarded host
host := c.Request.URL.Host
host := c.Request.Host
if strings.TrimSpace(host) == "" {
return ProxyContext{}, errors.New("host not found")
}
// We get the path from the query string
path := c.Query("path")