add host test

This commit is contained in:
Suby Raman
2017-03-03 14:51:13 -05:00
parent f0e818a28c
commit e792a1e030
2 changed files with 2 additions and 2 deletions

View File

@@ -149,7 +149,7 @@ class Request(dict):
def host(self):
# it appears that httptools doesn't return the host
# so pull it from the headers
return self.headers['Host']
return self.headers.get('Host', '')
@property
def path(self):