diff --git a/Tests/Integration/webdavlib.py b/Tests/Integration/webdavlib.py index f7d657634..cedd38bbe 100644 --- a/Tests/Integration/webdavlib.py +++ b/Tests/Integration/webdavlib.py @@ -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)