diff options
Diffstat (limited to 'cherrypy/lib/safemime.py')
| -rw-r--r-- | cherrypy/lib/safemime.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/lib/safemime.py b/cherrypy/lib/safemime.py index cf41dbf2..0d13ae9a 100644 --- a/cherrypy/lib/safemime.py +++ b/cherrypy/lib/safemime.py @@ -109,7 +109,7 @@ class MultipartWrapper(object): def safe_multipart(flash_only=False): """Wrap request.rfile in a reader that won't crash on no trailing CRLF.""" h = cherrypy.request.headers - if not h.get('Content-Type').startswith('multipart/'): + if not h.get('Content-Type','').startswith('multipart/'): return if flash_only and not 'Shockwave Flash' in h.get('User-Agent', ''): return |
