[Zope-Checkins] CVS: Zope/lib/python/webdav - EtagSupport.py:1.7

Andreas Jung Andreas Jung <andreas@andreas-jung.com>
Fri, 21 Jun 2002 11:12:46 -0400


The change only replace the capitalization code by .title():

-            # capitalize the words of the header, splitting on '-'
-            tmp = [x.capitalize() for x in  header.split('-')]
-            tmp = '-'.join(tmp)
-            matchlist = REQUEST.get_header(tmp)
+            matchlist = REQUEST.get_header(header.title())

It is pure code cleanup and does not have to do with the normalization
in other parts of the code.

-aj

--On Friday, June 21, 2002 10:38 -0400 Tres Seaver <tseaver@zope.com> wrote:

> On Fri, 2002-06-21 at 10:13, Andreas Jung wrote:
>> Update of /cvs-repository/Zope/lib/python/webdav
>> In directory cvs.zope.org:/tmp/cvs-serv30502/lib/python/webdav
>>
>> Modified Files:
>> 	EtagSupport.py
>> Log Message:
>> replaced captitalization code for header by .title()
>
> This is incomplete unless we change HTTPRequest and HTTPResponse
> to normalize headers using 'title()' as well.
>
> Tres.
> --
> ===============================================================
> Tres Seaver                                tseaver@zope.com
> Zope Corporation      "Zope Dealers"       http://www.zope.com
>
>
>
> _______________________________________________
> Zope-Checkins maillist  -  Zope-Checkins@zope.org
> http://lists.zope.org/mailman/listinfo/zope-checkins





    ---------------------------------------------------------------------
   -    Andreas Jung                     http://www.andreas-jung.com   -
  -   EMail: andreas at andreas-jung.com                              -
   -            "Life is too short to (re)write parsers"               -
    ---------------------------------------------------------------------