Commit 978e6d2c by Joost Cassee

Make concatenating certs robust in urls.py

Add a newline after each certificate file explicitly to avoid problems
with files that do not end with a newline themselves.
parent f8ca24b0
...@@ -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