diff --git a/browser/resource.py b/browser/resource.py index d780832..b86b74c 100644 --- a/browser/resource.py +++ b/browser/resource.py @@ -229,7 +229,8 @@ class ResourceView(BaseView): def viewable(self): return True ct = self.context.contentType - return ct.startswith('image/') or ct == 'application/pdf' + return (ct.startswith('image/') or + ct in ('application/pdf', 'application/x-pdf')) # actions