Merge pull request #7236 from jcassee/robust-ssl-cert-concat
Make concatenating certs robust in urls.pypull/4420/head
commit
40a7a306f5
|
@ -154,6 +154,7 @@ class SSLValidationHandler(urllib2.BaseHandler):
|
|||
try:
|
||||
cert_file = open(full_path, 'r')
|
||||
os.write(tmp_fd, cert_file.read())
|
||||
os.write(tmp_fd, '\n')
|
||||
cert_file.close()
|
||||
except:
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue