From 654312b4b656081cf75465a736e6780ff4b4d4a1 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 21 May 2010 12:29:04 +0000 Subject: [PATCH] Monotone-Parent: 6027da7fec6bc53d22c8e3d00a90425aa1984fb6 Monotone-Revision: 4367bb7794fde58a0b025a94522f5b2f30ba29e0 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-05-21T12:29:04 Monotone-Branch: ca.inverse.sogo --- Tests/Integration/webdavlib.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)