Skip to content

Commit 9fcf932

Browse files
authored
adding trailing slash to uploads url (#1947)
1 parent 1820a0f commit 9fcf932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ghmcp/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ func newGHECHost(hostname string) (apiHost, error) {
497497
return apiHost{}, fmt.Errorf("failed to parse GHEC GraphQL URL: %w", err)
498498
}
499499

500-
uploadURL, err := url.Parse(fmt.Sprintf("https://uploads.%s", u.Hostname()))
500+
uploadURL, err := url.Parse(fmt.Sprintf("https://uploads.%s/", u.Hostname()))
501501
if err != nil {
502502
return apiHost{}, fmt.Errorf("failed to parse GHEC Upload URL: %w", err)
503503
}

0 commit comments

Comments
 (0)