[CalendarServer-changes] [14756] CalDAVClientLibrary/trunk/caldavclientlibrary/client/httpshandler. py

source_changes at macosforge.org source_changes at macosforge.org
Tue May 5 10:34:16 PDT 2015


Revision: 14756
          http://trac.calendarserver.org//changeset/14756
Author:   cdaboo at apple.com
Date:     2015-05-05 10:34:16 -0700 (Tue, 05 May 2015)
Log Message:
-----------
Make sure real host/port is used in the Host header.

Modified Paths:
--------------
    CalDAVClientLibrary/trunk/caldavclientlibrary/client/httpshandler.py

Modified: CalDAVClientLibrary/trunk/caldavclientlibrary/client/httpshandler.py
===================================================================
--- CalDAVClientLibrary/trunk/caldavclientlibrary/client/httpshandler.py	2015-05-05 16:22:00 UTC (rev 14755)
+++ CalDAVClientLibrary/trunk/caldavclientlibrary/client/httpshandler.py	2015-05-05 17:34:16 UTC (rev 14756)
@@ -46,8 +46,8 @@
     An L{httplib.HTTPConnection} class that uses a unix socket rather than TCP.
     """
 
-    def __init__(self, path):
-        httplib.HTTPConnection.__init__(self, "http.sock", port=None)
+    def __init__(self, path, host, port):
+        httplib.HTTPConnection.__init__(self, host, port)
         self.path = path
 
 
@@ -80,7 +80,7 @@
         return connect
 
     if afunix:
-        connect = UnixSocketHTTPConnection(afunix)
+        connect = UnixSocketHTTPConnection(afunix, host, port)
     elif ssl:
         # Iterate over the TL:S versions and find one that works and cache it for future use.
         for cached, connection_type in cached_types:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150505/2643141a/attachment.html>


More information about the calendarserver-changes mailing list