mirror of
https://github.com/alibaba/higress.git
synced 2026-03-17 08:50:46 +08:00
fix: Path concatenation issue for authentication requests in Envoy authentication mode (#1709)
This commit is contained in:
@@ -16,7 +16,7 @@ package main
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"net/url"
|
||||
"path"
|
||||
|
||||
"ext-auth/config"
|
||||
"ext-auth/util"
|
||||
@@ -91,7 +91,7 @@ func checkExtAuth(ctx wrapper.HttpContext, cfg config.ExtAuthConfig, body []byte
|
||||
requestPath := httpServiceConfig.Path
|
||||
if httpServiceConfig.EndpointMode == config.EndpointModeEnvoy {
|
||||
requestMethod = ctx.Method()
|
||||
requestPath, _ = url.JoinPath(httpServiceConfig.PathPrefix, ctx.Path())
|
||||
requestPath = path.Join(httpServiceConfig.PathPrefix, ctx.Path())
|
||||
}
|
||||
|
||||
// Call ext auth server
|
||||
|
||||
Reference in New Issue
Block a user