mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-06 08:55:08 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user