Browse Source

CherryPy patch: no strict adherence to CRLF requirement for MIME messages. (Correction)

This would break some poorly written third-party utilities (like nzbdStatus for FireFox).
pull/84/head
shypike 12 years ago
parent
commit
e24e374c15
  1. 2
      cherrypy/_cpreqbody.py

2
cherrypy/_cpreqbody.py

@ -582,7 +582,7 @@ class Part(Entity):
### PATCH
# Do not enforce strict adherence to CRLF rule
# This would break some (badly written) third-party tools
if line == ntob('\n'):
if line == ntob('\r\n') or line == ntob('\n'):
# Normal end of headers
break
if not line.endswith(ntob('\r\n')):

Loading…
Cancel
Save