Skip to content

Commit

Permalink
fix: add logging for path joining errors in ApplyApiPathRule
Browse files Browse the repository at this point in the history
  • Loading branch information
krau committed Jan 26, 2025
1 parent 7846619 commit e4ac491
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/strings.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ func ApplyApiPathRule(originPath string) string {
if strings.HasPrefix(originPath, rule.Path) {
parsedUrl, err := url.JoinPath(rule.JoinPrefix, strings.TrimPrefix(originPath, rule.TrimPrefix))
if err != nil {
Logger.Warnf("Failed to join path: %s", err)
return originPath
}
return parsedUrl
Expand Down

0 comments on commit e4ac491

Please sign in to comment.