diff --git a/VERSION b/VERSION index fafdfec8..1d074d70 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.2.1 (2012-11-16 16:24:05) stable +Version 2.2.1 (2012-11-17 08:59:48) stable diff --git a/gluon/rewrite.py b/gluon/rewrite.py index c18035d9..e0f87d08 100644 --- a/gluon/rewrite.py +++ b/gluon/rewrite.py @@ -538,7 +538,7 @@ def load_routers(all_apps): def regex_uri(e, regexes, tag, default=None): "filter incoming URI against a list of regexes" path = e['PATH_INFO'] - host = e.get('http_host', e.get('SERVER_NAME', 'localhost')).lower() + host = e.get('HTTP_HOST', e.get('SERVER_NAME', 'localhost')).lower() i = host.find(':') if i > 0: host = host[:i]