Skip to content

Commit a7ff281

Browse files
author
Matthias Koeppe
committed
Keep 'image/gif', 'image/jpeg', 'image/png' uncompressed
1 parent 1f80869 commit a7ff281

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

migrate.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,8 @@ def gh_create_attachment(dest, issue, filename, src_ticket_id, attachment=None,
16741674
create = issue.create_attachment
16751675
else:
16761676
# Cannot make it an "attachment"(?)
1677-
if mimetype not in ['text/plain', 'text/x-log', 'application/gzip', 'application/zip']:
1677+
if mimetype not in ['text/plain', 'text/x-log', 'application/gzip', 'application/zip',
1678+
'image/gif', 'image/jpeg', 'image/png']:
16781679
# Replace by a gzipped file
16791680
if attachment:
16801681
attachment['attachment'] = gzip.compress(attachment['attachment'])

0 commit comments

Comments
 (0)