Skip to content

Commit

Permalink
fix: Path concatenation issue for authentication requests in Envoy au…
Browse files Browse the repository at this point in the history
…thentication mode (#1709)
  • Loading branch information
hanxiantao authored Jan 23, 2025
1 parent 7840167 commit 574d1aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/wasm-go/extensions/ext-auth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package main

import (
"net/http"
"net/url"
"path"

"ext-auth/config"
"ext-auth/util"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 574d1aa

Please sign in to comment.