Commit be243acf authored by Amos Latteier's avatar Amos Latteier

Added fix contributed by Brian Hooper for HTTP Clients which don't always...

Added fix contributed by Brian Hooper for HTTP Clients which don't always spell their HTTP headers correctly.
parent 8462954a
......@@ -243,8 +243,9 @@ class zhttp_handler:
pass
for header in request.header:
[key,value]=string.split(header,": ",1)
key,value=string.split(header,":",1)
key=string.lower(key)
value=string.strip(value)
if header2env.has_key(key) and value:
env[header2env[key]]=value
else:
......
......@@ -243,8 +243,9 @@ class zhttp_handler:
pass
for header in request.header:
[key,value]=string.split(header,": ",1)
key,value=string.split(header,":",1)
key=string.lower(key)
value=string.strip(value)
if header2env.has_key(key) and value:
env[header2env[key]]=value
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment