X Tutup
Skip to content

Commit c9b9478

Browse files
committed
shared/upload: Add .tar format
Currently the mimecap package is an requirement to pass the test suite, as we need /etc/mime.types to recognize the tar extension. A better idea is to inline all of the basic test cases for the test suite. Signed-off-by: Morten Linderud <morten@linderud.pw>
1 parent b2e36a0 commit c9b9478

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/cmd/release/shared/upload.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ func typeForFilename(fn string) string {
6262
return "application/zip"
6363
case ".js":
6464
return "application/javascript"
65+
case ".tar":
66+
return "application/x-tar"
6567
case ".tgz", ".tar.gz":
6668
return "application/x-gtar"
6769
case ".bz2":

0 commit comments

Comments
 (0)
X Tutup