Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 2080

Show
Ignore:
Timestamp:
11/08/08 16:36:53
Author:
fumanchu
Message:

Fix for #846 (Bug in safemime).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/lib/safemime.py

    r1678 r2080  
    110110    """Wrap request.rfile in a reader that won't crash on no trailing CRLF.""" 
    111111    h = cherrypy.request.headers 
    112     if not h.get('Content-Type').startswith('multipart/'): 
     112    if not h.get('Content-Type','').startswith('multipart/'): 
    113113        return 
    114114    if flash_only and not 'Shockwave Flash' in h.get('User-Agent', ''): 

Hosted by WebFaction

Log in as guest/cpguest to create tickets