diff options
| author | Sri Sanketh Uppalapati <sanketh.uppalapati@research.iiit.ac.in> | 2015-12-12 17:06:29 +0530 |
|---|---|---|
| committer | Sri Sanketh Uppalapati <sanketh.uppalapati@research.iiit.ac.in> | 2015-12-12 17:06:29 +0530 |
| commit | b4fcff0471e16b6dab3a685df970bca712c5cb3b (patch) | |
| tree | b5b3ad2738cc97c7e3b3d7a5c65ec6785053a8ef | |
| parent | 7682837de754c2515ff617a87afecae2498cfa6e (diff) | |
| download | pyramid-b4fcff0471e16b6dab3a685df970bca712c5cb3b.tar.gz pyramid-b4fcff0471e16b6dab3a685df970bca712c5cb3b.tar.bz2 pyramid-b4fcff0471e16b6dab3a685df970bca712c5cb3b.zip | |
Update url.py
| -rw-r--r-- | pyramid/url.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pyramid/url.py b/pyramid/url.py index 812514638..fd62f0057 100644 --- a/pyramid/url.py +++ b/pyramid/url.py @@ -98,6 +98,8 @@ class URLMethodsMixin(object): port = '80' if host is None: host = e.get('HTTP_HOST') + if host is None: + host = e['SERVER_NAME'] if port is None: if ':' in host: host, port = host.split(':', 1) |
