summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlinaro-cp.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/linaro-cp.py b/linaro-cp.py
index c77998d..ee14994 100755
--- a/linaro-cp.py
+++ b/linaro-cp.py
@@ -171,7 +171,11 @@ class API_v3(API_v1):
def upload_file(self, url, filename):
# ask llp for an s3 tempurl:
mtype = mimetypes.guess_type(filename)[0]
- if not mtype:
+ if filename.endswith('.tgz'):
+ mtype = 'application/x-tgz'
+ elif filename.endswith('.xz'):
+ mtype = 'application/x-xz'
+ elif not mtype:
mtype = 'other'
data = {'Content-Type': mtype}