We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6f8af2 commit 1a3325aCopy full SHA for 1a3325a
internal/util/url.go
@@ -18,6 +18,7 @@ import (
18
// Examples:
19
// - ResolveURLPath("http://localhost:12434/api/", "/v1/models") -> "http://localhost:12434/api/v1/models"
20
// - ResolveURLPath("http://localhost:12434/api/", "http://other:9000/models") -> "http://other:9000/models"
21
+//
22
// ResolveURLPath resolves a path or absolute URL against a base URL.
23
// This function exists because url.ResolveReference() follows RFC 3986 strictly,
24
// treating paths with leading "/" as absolute references that replace the entire base path.
0 commit comments