Changeset 1636
- Timestamp:
- 03/09/07 12:25:20
- Files:
-
- branches/cherrypy-3.0.x/cherrypy/_cprequest.py (modified) (1 diff)
- trunk/cherrypy/_cprequest.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/cherrypy-3.0.x/cherrypy/_cprequest.py
r1616 r1636 597 597 msg = "HTTP/1.1 requires a 'Host' request header." 598 598 raise cherrypy.HTTPError(400, msg) 599 host = dict. __getitem__(headers, 'Host')599 host = dict.get(headers, 'Host') 600 600 if not host: 601 601 host = self.local.name or self.local.ip trunk/cherrypy/_cprequest.py
r1627 r1636 598 598 msg = "HTTP/1.1 requires a 'Host' request header." 599 599 raise cherrypy.HTTPError(400, msg) 600 host = dict. __getitem__(headers, 'Host')600 host = dict.get(headers, 'Host') 601 601 if not host: 602 602 host = self.local.name or self.local.ip

