Skip to content

Commit 41a5ce1

Browse files
committed
Strip trailing slash from ITX base URL to prevent double slashes
- Add strings.TrimRight() in NewClient to strip trailing slash from config.BaseURL - Prevents double slash issues like "https://api.example.com//v2/zoom/meetings" - All URL constructions use fmt.Sprintf with hardcoded "/" prefix in paths - Ensures consistent URL parsing regardless of base URL configuration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Signed-off-by: Andres Tobon <andrest2455@gmail.com>
1 parent 7484de6 commit 41a5ce1

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

charts/lfx-v2-meeting-service/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ apiVersion: v2
55
name: lfx-v2-meeting-service
66
description: LFX Platform V2 Meeting Service chart
77
type: application
8-
version: 0.6.3
8+
version: 0.6.4
99
appVersion: "latest"

internal/infrastructure/proxy/client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"log/slog"
1313
"net/http"
1414
"net/url"
15+
"strings"
1516
"time"
1617

1718
"github.com/auth0/go-auth0/authentication"
@@ -87,6 +88,9 @@ func NewClient(config Config) *Client {
8788
panic("ITX_CLIENT_PRIVATE_KEY is required but not set")
8889
}
8990

91+
// Strip trailing slash from base URL to prevent double slashes in URL construction
92+
config.BaseURL = strings.TrimRight(config.BaseURL, "/")
93+
9094
// Create Auth0 authentication client with private key assertion (JWT)
9195
// The private key should be in PEM format (raw, not base64-encoded)
9296
authConfig, err := authentication.New(

0 commit comments

Comments
 (0)