fix mimetypes, ht
@@ -22,13 +22,13 @@ EXT_TO_MIME = {
'.jpeg': 'image/jpg',
'.xml': MIMETYPE_PAGE,
'.jp2': 'image/jp2',
- '.pdf': 'image/pdf',
- '.ps': 'image/ps',
- '.eps': 'image/eps',
- '.xps': 'image/xps',
- '.ppm': 'image/ppm',
- '.pnm': 'image/pnm',
- '.pbm': 'image/pbm',
+ '.pdf': 'application/pdf',
+ '.ps': 'application/postscript',
+ '.eps': 'application/postscript',
+ '.xps': 'application/oxps',
+ '.ppm': 'image/x-portable-pixmap',
+ '.pnm': 'image/x-portable-anymap',
+ '.pbm': 'image/x-portable-bitmap',
}
MIME_TO_EXT = {
@@ -39,11 +39,10 @@ MIME_TO_EXT = {
MIMETYPE_PAGE: '.xml',
'application/alto+xml': '.xml',
'image/jp2': '.jp2',
- 'image/pdf': '.pdf',
- 'image/ps': '.ps',
- 'image/eps': '.eps',
- 'image/xps': '.xps',
- 'image/ppm': '.ppm',
- 'image/pnm': '.pnm',
- 'image/pbm': '.pbm',
+ 'application/pdf': '.pdf',
+ 'application/postscript': '.ps',
+ 'application/oxps': '.xps',
+ 'image/x-portable-pixmap': '.ppm',
+ 'image/x-portable-anymap': '.pnm',
+ 'image/x-portable-bitmap': '.pbm',
}
