Commit 7c228e39 authored by Andreas Jung's avatar Andreas Jung

replaced captitalization code for header by .title()

parent 6d246e76
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
############################################################################## ##############################################################################
__version__ = "$Revision: 1.6 $"[11:-2] __version__ = "$Revision: 1.7 $"[11:-2]
import time, Interface, re import time, Interface, re
...@@ -84,10 +84,7 @@ class EtagSupport: ...@@ -84,10 +84,7 @@ class EtagSupport:
# returns a tuple of Etags. # returns a tuple of Etags.
matchlist = REQUEST.get_header(header) matchlist = REQUEST.get_header(header)
if matchlist is None: if matchlist is None:
# capitalize the words of the header, splitting on '-' matchlist = REQUEST.get_header(header.title())
tmp = [x.capitalize() for x in header.split('-')]
tmp = '-'.join(tmp)
matchlist = REQUEST.get_header(tmp)
if matchlist is None: if matchlist is None:
return None return None
matchlist = [ x.strip() for x in matchlist.split(',')] matchlist = [ x.strip() for x in matchlist.split(',')]
......
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