Add support for authentication over https
authorChristophe de Vienne <cdevienne@gmail.com>
Mon, 3 Sep 2012 15:39:01 +0000 (17:39 +0200)
committerChristophe de Vienne <cdevienne@gmail.com>
Mon, 3 Sep 2012 15:39:01 +0000 (17:39 +0200)
jenkinsapi/utils/urlopener.py

index b6e7942..9dd5a2f 100644 (file)
@@ -27,6 +27,9 @@ class PreemptiveBasicAuthHandler(urllib2.BaseHandler):
         req.add_unredirected_header('Authorization', auth)
         return req
 
+    def https_request(self,req):
+        return self.http_request(req)
+
 def mkurlopener( jenkinsuser, jenkinspass, jenkinsurl, proxyhost, proxyport, proxyuser, proxypass ):
     """
      Creates an url opener that works with both jenkins auth and proxy auth