scgi friendly patch, thanks Michele
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-08-21 18:20:02) dev
|
Version 2.00.0 (2012-08-21 21:53:55) dev
|
||||||
|
|||||||
+1
-1
@@ -476,7 +476,7 @@ def load_routers(all_apps):
|
|||||||
def regex_uri(e, regexes, tag, default=None):
|
def regex_uri(e, regexes, tag, default=None):
|
||||||
"filter incoming URI against a list of regexes"
|
"filter incoming URI against a list of regexes"
|
||||||
path = e['PATH_INFO']
|
path = e['PATH_INFO']
|
||||||
host = e.get('HTTP_HOST', 'localhost').lower()
|
host = e.get('http_host', e.get('SERVER_NAME','localhost')).lower()
|
||||||
i = host.find(':')
|
i = host.find(':')
|
||||||
if i > 0:
|
if i > 0:
|
||||||
host = host[:i]
|
host = host[:i]
|
||||||
|
|||||||
Reference in New Issue
Block a user