Commit 40a7a306 by James Cammarata

Merge pull request #7236 from jcassee/robust-ssl-cert-concat

Make concatenating certs robust in urls.py
parents 8e45fa9b 978e6d2c
...@@ -154,6 +154,7 @@ class SSLValidationHandler(urllib2.BaseHandler): ...@@ -154,6 +154,7 @@ class SSLValidationHandler(urllib2.BaseHandler):
try: try:
cert_file = open(full_path, 'r') cert_file = open(full_path, 'r')
os.write(tmp_fd, cert_file.read()) os.write(tmp_fd, cert_file.read())
os.write(tmp_fd, '\n')
cert_file.close() cert_file.close()
except: except:
pass pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment