Skip to content

Commit

Permalink
Merge pull request astropy#622 from hugovk/v-mimetypes.add_type-with-dot
Browse files Browse the repository at this point in the history
Add dot to extensions of added MIME types
  • Loading branch information
bsipocz authored Nov 21, 2024
2 parents 0cafd6f + c4080f7 commit 99e0fd9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyvo/dal/mimetype.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
from ..utils.http import use_session


mimetypes.add_type('application/fits', 'fits')
mimetypes.add_type('application/x-fits', 'fits')
mimetypes.add_type('image/fits', 'fits')
mimetypes.add_type('text/plain', 'txt')
mimetypes.add_type('application/fits', '.fits')
mimetypes.add_type('application/x-fits', '.fits')
mimetypes.add_type('image/fits', '.fits')
mimetypes.add_type('text/plain', '.txt')


def mime2extension(mimetype, default=None):
Expand Down

0 comments on commit 99e0fd9

Please sign in to comment.