Skip to content

Commit 7d67651

Browse files
amrntvishr
authored andcommitted
check proxy skipper before proceeding (#992)
1 parent a26bc31 commit 7d67651

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

middleware/proxy.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ func ProxyWithConfig(config ProxyConfig) echo.MiddlewareFunc {
142142

143143
return func(next echo.HandlerFunc) echo.HandlerFunc {
144144
return func(c echo.Context) (err error) {
145+
if config.Skipper(c) {
146+
return next(c)
147+
}
148+
145149
req := c.Request()
146150
res := c.Response()
147151
tgt := config.Balancer.Next()

0 commit comments

Comments
 (0)