diff options
-rw-r--r-- | AUTHORS | 1 | ||||
-rwxr-xr-x | rbtools/postreview.py | 13 |
2 files changed, 9 insertions, 5 deletions
@@ -18,5 +18,6 @@ Contributors: * Matthew Woehlke * Paul Scott * Raghu Kaippully + * Ryan Oblak * Stacey Sheldon * Steven Russell diff --git a/rbtools/postreview.py b/rbtools/postreview.py index 3bbd8ca..c157277 100755 --- a/rbtools/postreview.py +++ b/rbtools/postreview.py @@ -277,11 +277,14 @@ class ReviewBoardServer(object): self.cookie_jar = cookielib.MozillaCookieJar(self.cookie_file) # Set up the HTTP libraries to support all of the features we need. - cookie_handler = urllib2.HTTPCookieProcessor(self.cookie_jar) - password_mgr = ReviewBoardHTTPPasswordMgr(self.url) - auth_handler = urllib2.HTTPBasicAuthHandler(password_mgr) - - opener = urllib2.build_opener(cookie_handler, auth_handler) + cookie_handler = urllib2.HTTPCookieProcessor(self.cookie_jar) + password_mgr = ReviewBoardHTTPPasswordMgr(self.url) + basic_auth_handler = urllib2.HTTPBasicAuthHandler(password_mgr) + digest_auth_handler = urllib2.HttpDigestAuthHandler(password_mgr) + + opener = urllib2.build_opener(cookie_handler, + basic_auth_handler, + digest_auth_handler) opener.addheaders = [('User-agent', 'post-review/' + VERSION)] urllib2.install_opener(opener) |