mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 22:56:15 +01:00
Merge branch 'master' of https://github.com/andreas-schwab/osc
Use the correct appname for the trusted-certs store.
Follow-up fix for commit 9daa15de8e
("Merge branch 'fix_CVE-2013-3685' of https://github.com/lethliel/osc").
This commit is contained in:
commit
181bfe8c75
@ -199,13 +199,13 @@ class myHTTPSHandler(M2Crypto.m2urllib2.HTTPSHandler):
|
||||
|
||||
if target_host != host:
|
||||
request_uri = urldefrag(full_url)[0]
|
||||
h = myProxyHTTPSConnection(host=host, ssl_context=self.ctx)
|
||||
h = myProxyHTTPSConnection(host=host, appname=self.appname, ssl_context=self.ctx)
|
||||
else:
|
||||
try: # up to python-3.2
|
||||
request_uri = req.get_selector()
|
||||
except AttributeError: # from python-3.3
|
||||
request_uri = req.selector
|
||||
h = myHTTPSConnection(host=host, ssl_context=self.ctx)
|
||||
h = myHTTPSConnection(host=host, appname=self.appname, ssl_context=self.ctx)
|
||||
# End our change
|
||||
h.set_debuglevel(self._debuglevel)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user