Update vendored libs

This commit is contained in:
Wim
2021-05-03 23:45:03 +02:00
parent af77109a47
commit 2d52fe1c80
44 changed files with 428 additions and 1650 deletions

View File

@@ -231,8 +231,9 @@ func ProxyWithConfig(config ProxyConfig) echo.MiddlewareFunc {
tgt := config.Balancer.Next(c)
c.Set(config.ContextKey, tgt)
// Set rewrite path and raw path
rewritePath(config.RegexRewrite, req)
if err := rewriteURL(config.RegexRewrite, req); err != nil {
return err
}
// Fix header
// Basically it's not good practice to unconditionally pass incoming x-real-ip header to upstream.