Monotone-Parent: 6027da7fec6bc53d22c8e3d00a90425aa1984fb6

Monotone-Revision: 4367bb7794fde58a0b025a94522f5b2f30ba29e0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-05-21T12:29:04
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-05-21 12:29:04 +00:00
parent ab8da5f792
commit 654312b4b6
+4 -1
View File
@@ -67,7 +67,7 @@ class WebDAVClient:
user_agent = "Mozilla/5.0"
def __init__(self, hostname, port, username, password, forcessl = False):
if port == "443" or forcessl:
if int(port) == 443 or forcessl:
self.conn = M2Crypto.httpslib.HTTPSConnection(hostname, int(port),
True)
else:
@@ -132,6 +132,9 @@ class HTTPSimpleQuery:
class HTTPGET(HTTPSimpleQuery):
method = "GET"
class HTTPOPTIONS(HTTPSimpleQuery):
method = "OPTIONS"
class HTTPQuery(HTTPSimpleQuery):
def __init__(self, url):
HTTPSimpleQuery.__init__(self, url)