Skip to content

Commit f40fa43

Browse files
fix(s3): better Key function
1 parent 7cb60e6 commit f40fa43

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

s3/storage.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ import (
2121

2222
// Key generates the S3 key from the URL.
2323
var Key = func(u url.URL) string {
24-
u.Scheme = ""
25-
return u.String()
24+
return strings.TrimPrefix(u.String(), "https://")
2625
}
2726

2827
// Storage implements the ghtransport.Storage interface backed by AWS S3.

0 commit comments

Comments
 (0)