diff options
author | Tomeu Vizoso <tomeu@sugarlabs.org> | 2009-04-07 09:02:14 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@sugarlabs.org> | 2009-04-07 09:02:14 (GMT) |
commit | ef1d638d3203cfc6432660fd8def35328d852c3e (patch) | |
tree | ebe9bf8844860a2e198640f424599cd1c938a1e2 /downloadmanager.py | |
parent | 7f7ff603a15d69892a2465bab4ce28652d260e34 (diff) |
Try to get a more meaningful mime type than application/x-zip #541
Diffstat (limited to 'downloadmanager.py')
-rw-r--r-- | downloadmanager.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/downloadmanager.py b/downloadmanager.py index e41d06f..69d1c8a 100644 --- a/downloadmanager.py +++ b/downloadmanager.py @@ -180,7 +180,8 @@ class Download: self.dl_jobject.metadata['progress'] = '100' self.dl_jobject.file_path = self._target_file.path - if self._mime_type == 'application/octet-stream': + if self._mime_type in ['application/octet-stream', + 'application/x-zip']: sniffed_mime_type = mime.get_for_file(self._target_file.path) self.dl_jobject.metadata['mime_type'] = sniffed_mime_type |