diff --git a/plugins/wasm-go/extensions/ext-auth/main.go b/plugins/wasm-go/extensions/ext-auth/main.go index eee610f491..8cc8c05952 100644 --- a/plugins/wasm-go/extensions/ext-auth/main.go +++ b/plugins/wasm-go/extensions/ext-auth/main.go @@ -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