From e07e988bd9ba2db63924cdc98eee3a6e6eb38873 Mon Sep 17 00:00:00 2001 From: Matt Holgate Date: Wed, 2 Jul 2014 18:16:59 +0100 Subject: 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. --- source/xps/xps-doc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/xps') 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; -- cgit v1.2.3