diff options
author | Matt Holgate <matt@emobix.co.uk> | 2014-07-02 18:16:59 +0100 |
---|---|---|
committer | Matt Holgate <matt@emobix.co.uk> | 2014-07-02 18:16:59 +0100 |
commit | e07e988bd9ba2db63924cdc98eee3a6e6eb38873 (patch) | |
tree | fc0bb20412bcf7024baea53056691fd5206562c6 /source | |
parent | fe01358a4e3cf8e8c1d625937f89ddb9c1a7d8dc (diff) | |
download | mupdf-e07e988bd9ba2db63924cdc98eee3a6e6eb38873.tar.xz |
Handle the application/xps mimetype.
I think this is non-standard, but some applications seem to use it.
The email app on Android uses it, despite the fact the original email
actually embedded it as application/octet-stream. I guess the email app
is looking at the filename.
Diffstat (limited to 'source')
-rw-r--r-- | source/xps/xps-doc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/xps/xps-doc.c b/source/xps/xps-doc.c index 5aa2604c..ee3d9736 100644 --- a/source/xps/xps-doc.c +++ b/source/xps/xps-doc.c @@ -544,6 +544,7 @@ xps_recognize(fz_context *doc, const char *magic) } if (!strcmp(magic, "xps") || !strcmp(magic, "oxps") || !strcmp(magic, "application/vnd.ms-xpsdocument") || + !strcmp(magic, "application/xps") || !strcmp(magic, "application/oxps")) return 100; |