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

source_changes at macosforge.org source_changes at macosforge.org
Sun Mar 15 17:30:29 PDT 2015


Revision: 14596
          http://trac.calendarserver.org//changeset/14596
Author:   cdaboo at apple.com
Date:     2015-03-15 17:30:29 -0700 (Sun, 15 Mar 2015)
Log Message:
-----------
Some servers now require a User-Agent.

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

Modified: CalDAVClientLibrary/trunk/caldavclientlibrary/protocol/http/requestresponse.py
===================================================================
--- CalDAVClientLibrary/trunk/caldavclientlibrary/protocol/http/requestresponse.py	2015-03-13 22:45:44 UTC (rev 14595)
+++ CalDAVClientLibrary/trunk/caldavclientlibrary/protocol/http/requestresponse.py	2015-03-16 00:30:29 UTC (rev 14596)
@@ -142,6 +142,9 @@
             host += ":%s" % (self.session.port,)
         hdrs.append((headers.Host, host))
 
+        # User-Agent
+        hdrs.append(("User-Agent", "Secret-Agent",))
+
         # Do ETag matching
         if self.etag:
             if self.etag_match:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150315/a08ddeb3/attachment.html>


More information about the calendarserver-changes mailing list