projects
/
tools
/
python-jenkinsapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4310ae3
)
Add support for authentication over https
author
Christophe de Vienne
<cdevienne@gmail.com>
Mon, 3 Sep 2012 15:39:01 +0000
(17:39 +0200)
committer
Christophe de Vienne
<cdevienne@gmail.com>
Mon, 3 Sep 2012 15:39:01 +0000
(17:39 +0200)
jenkinsapi/utils/urlopener.py
patch
|
blob
|
history
diff --git
a/jenkinsapi/utils/urlopener.py
b/jenkinsapi/utils/urlopener.py
index
b6e7942
..
9dd5a2f
100644
(file)
--- 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