[CalendarServer-changes] [1764] CalendarClientSimulator/trunk/src/calendarclient.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Aug 7 08:05:52 PDT 2007


Revision: 1764
          http://trac.macosforge.org/projects/calendarserver/changeset/1764
Author:   cdaboo at apple.com
Date:     2007-08-07 08:05:51 -0700 (Tue, 07 Aug 2007)

Log Message:
-----------
Fix digest re-auth problem.

Modified Paths:
--------------
    CalendarClientSimulator/trunk/src/calendarclient.py

Modified: CalendarClientSimulator/trunk/src/calendarclient.py
===================================================================
--- CalendarClientSimulator/trunk/src/calendarclient.py	2007-08-07 03:32:10 UTC (rev 1763)
+++ CalendarClientSimulator/trunk/src/calendarclient.py	2007-08-07 15:05:51 UTC (rev 1764)
@@ -536,10 +536,10 @@
         headers["Authorization"] = response
         status, response_headers, response_data = self.doAuthenticatedRequest(ruri, method, headers, data)
         if status == 401 and www_authenticate is None:
-            www_authenticate = response_headers["www-authenticate"]
-            return self.doDigestRequest(ruri, method, headers, data, www_authenticate)
-        else:
-            return status, response_headers, response_data
+            for header, value in response_headers:
+                if header == "www-authenticate":
+                    return self.doDigestRequest(ruri, method, headers, data, value)
+        return status, response_headers, response_data
 
     def doAuthenticatedRequest(self, ruri, method='GET', headers={}, data=None):
         

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070807/79cd38ea/attachment.html


More information about the calendarserver-changes mailing list