Skip to content

Commit 151a734

Browse files
committed
Fix .zip and .js overrides for Windows
1 parent 02a057a commit 151a734

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cmd/release/shared/upload.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ func AssetsFromArgs(args []string) (assets []*AssetForUpload, err error) {
5858
func typeForFilename(fn string) string {
5959
ext := fileExt(fn)
6060
switch ext {
61-
case "zip":
61+
case ".zip":
6262
return "application/zip"
63-
case "js":
63+
case ".js":
6464
return "application/javascript"
6565
case ".tgz", ".tar.gz":
6666
return "application/x-gtar"

0 commit comments

Comments
 (0)