mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-03 18:43:20 +02:00
Ensure we send a mimetype when upload to github
This commit is contained in:
parent
e52d62e71d
commit
519a90abdf
1 changed files with 1 additions and 1 deletions
|
|
@ -196,7 +196,7 @@ def clean_older_releases(self, releases):
|
|||
)
|
||||
|
||||
def do_upload(self, url, path, desc, fname):
|
||||
mime_type = mimetypes.guess_type(fname)[0]
|
||||
mime_type = mimetypes.guess_type(fname)[0] or 'application/octet-stream'
|
||||
self.info('Uploading to GitHub: %s (%s)' % (fname, mime_type))
|
||||
with ReadFileWithProgressReporting(path) as f:
|
||||
return self.requests.post(
|
||||
|
|
|
|||
Loading…
Reference in a new issue