[CalendarServer-changes] [10317] CalDAVClientLibrary/trunk/caldavclientlibrary/protocol/http/ requestresponse.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Jan 23 16:08:53 PST 2013


Revision: 10317
          http://trac.calendarserver.org//changeset/10317
Author:   cdaboo at apple.com
Date:     2013-01-23 16:08:53 -0800 (Wed, 23 Jan 2013)
Log Message:
-----------
Fix header parsing.

Modified Paths:
--------------
    CalDAVClientLibrary/trunk/caldavclientlibrary/protocol/http/requestresponse.py

Modified: CalDAVClientLibrary/trunk/caldavclientlibrary/protocol/http/requestresponse.py
===================================================================
--- CalDAVClientLibrary/trunk/caldavclientlibrary/protocol/http/requestresponse.py	2013-01-23 01:44:10 UTC (rev 10316)
+++ CalDAVClientLibrary/trunk/caldavclientlibrary/protocol/http/requestresponse.py	2013-01-24 00:08:53 UTC (rev 10317)
@@ -171,7 +171,7 @@
 
     def setResponseHeaders(self, hdrs):
         for header in hdrs:
-            splits = header.split(":")
+            splits = header.split(":", 1)
             self.headers.setdefault(splits[0].strip().lower(), []).append(splits[1].strip())
 
         # Now cache some useful header values
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130123/6873ed39/attachment.html>


More information about the calendarserver-changes mailing list