[CalendarServer-changes] [14757] CalDAVTester/trunk/src/httpshandler.py

source_changes at macosforge.org source_changes at macosforge.org
Tue May 5 10:35:11 PDT 2015


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

Modified Paths:
--------------
    CalDAVTester/trunk/src/httpshandler.py

Modified: CalDAVTester/trunk/src/httpshandler.py
===================================================================
--- CalDAVTester/trunk/src/httpshandler.py	2015-05-05 17:34:16 UTC (rev 14756)
+++ CalDAVTester/trunk/src/httpshandler.py	2015-05-05 17:35:11 UTC (rev 14757)
@@ -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/310065cc/attachment.html>


More information about the calendarserver-changes mailing list