Commit 56d48e4
committed
fix: harden normalizeEndpoint to handle arbitrary URI schemes
Endpoints with non-HTTP schemes (e.g. s3://, ftp://) were incorrectly
getting https:// prepended, producing invalid URLs like https://s3://...
Now uses strings.Contains("://") to detect any scheme, only prepending
https:// for bare host:port values (matching v1 SDK DisableSSL=false
behaviour).
Made-with: Cursor1 parent 8832710 commit 56d48e4
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
| 77 | + | |
| 78 | + | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
0 commit comments