Browse Source

Prevent CherryPy crash when reading a cookie from another app which has a non-standard name.

pull/59/head
shypike 13 years ago
parent
commit
2aa1b00dbb
  1. 5
      cherrypy/_cprequest.py

5
cherrypy/_cprequest.py

@ -658,7 +658,10 @@ class Request(object):
# Handle cookies differently because on Konqueror, multiple
# cookies come on different lines with the same key
if name == 'Cookie':
self.cookie.load(value)
try:
self.cookie.load(value)
except:
pass
if not dict.__contains__(headers, 'Host'):
# All Internet-based HTTP/1.1 servers MUST respond with a 400

Loading…
Cancel
Save