Fix .zip and .js overrides for Windows

This commit is contained in:
Mislav Marohnić 2020-09-03 11:44:54 +02:00
parent 02a057a709
commit 151a7340a6

View file

@ -58,9 +58,9 @@ func AssetsFromArgs(args []string) (assets []*AssetForUpload, err error) {
func typeForFilename(fn string) string {
ext := fileExt(fn)
switch ext {
case "zip":
case ".zip":
return "application/zip"
case "js":
case ".js":
return "application/javascript"
case ".tgz", ".tar.gz":
return "application/x-gtar"