From 2452db5b8558633a4b2b27297891ff3548faf7b4 Mon Sep 17 00:00:00 2001 From: Christophe de Vienne Date: Mon, 3 Sep 2012 17:39:01 +0200 Subject: [PATCH] Add support for authentication over https --- jenkinsapi/utils/urlopener.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jenkinsapi/utils/urlopener.py b/jenkinsapi/utils/urlopener.py index b6e7942..9dd5a2f 100644 --- a/jenkinsapi/utils/urlopener.py +++ b/jenkinsapi/utils/urlopener.py @@ -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 -- 2.34.1