From 3cdffe1937f7d8fc619d357e1d46a501abcfc009 Mon Sep 17 00:00:00 2001 From: helmutm Date: Wed, 24 Dec 2008 09:56:26 +0000 Subject: [PATCH] add 'application/x-pdf' to mimetypes git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3082 fd906abe-77d9-0310-91a1-e0d9ade77398 --- integrator/base.py | 2 +- integrator/mime.types | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/integrator/base.py b/integrator/base.py index 3339389..bffa666 100644 --- a/integrator/base.py +++ b/integrator/base.py @@ -206,7 +206,7 @@ class MimeTypes(dict): line = line.strip() if line: parts = line.split() - self[parts[0]] = parts[1:] + self[parts[0].strip()] = parts[1:] mtFile.close() mimeTypes = MimeTypes() diff --git a/integrator/mime.types b/integrator/mime.types index 7252877..7cc9a3c 100644 --- a/integrator/mime.types +++ b/integrator/mime.types @@ -391,6 +391,7 @@ application/x-ns-proxy-autoconfig pac application/x-nwc nwc application/x-object o application/x-oz-application oza +application/x-pdf pdf application/x-pkcs7-certreqresp p7r application/x-pkcs7-crl crl application/x-python-code pyc pyo