[CalendarServer-changes] [12542] CalDAVTester/trunk/verifiers/header.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:22:00 PDT 2014


Revision: 12542
          http://trac.calendarserver.org//changeset/12542
Author:   cdaboo at apple.com
Date:     2014-02-03 11:45:54 -0800 (Mon, 03 Feb 2014)
Log Message:
-----------
Ignore whitespace in HTTP header tests.

Modified Paths:
--------------
    CalDAVTester/trunk/verifiers/header.py

Modified: CalDAVTester/trunk/verifiers/header.py
===================================================================
--- CalDAVTester/trunk/verifiers/header.py	2014-02-03 19:44:10 UTC (rev 12541)
+++ CalDAVTester/trunk/verifiers/header.py	2014-02-03 19:45:54 UTC (rev 12542)
@@ -70,8 +70,10 @@
                 continue
 
             if (hdrvalue is not None):
+                hdrvalue = hdrvalue.replace(" ", "")
                 matched = False
                 for hdr in hdrs:
+                    hdr = hdr.replace(" ", "")
                     if (re.match(hdrvalue, hdr) is not None):
                         matched = True
                         break
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/829d96a9/attachment.html>


More information about the calendarserver-changes mailing list