aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/util.py
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-10-19 18:43:36 +0200
committerSimon Sapin <simon.sapin@exyr.org>2017-10-19 18:43:36 +0200
commitaa62942fbd836279da8ea41d2e5d4ca9dd61fad3 (patch)
tree66ccc286b1bf88c5af4ab5c2e18890f9fe08040e /python/servo/util.py
parenta931d3b840d25bf536eeae5e457b02f9e338feaa (diff)
downloadservo-aa62942fbd836279da8ea41d2e5d4ca9dd61fad3.tar.gz
servo-aa62942fbd836279da8ea41d2e5d4ca9dd61fad3.zip
Bootstrap: use 'certifi' package to obtain up-to-date root CA list.
The default root CA store on our Windows CI builders does not trust static.rust-lang.org
Diffstat (limited to 'python/servo/util.py')
-rw-r--r--python/servo/util.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/servo/util.py b/python/servo/util.py
index 30de9fba847..485637b81f1 100644
--- a/python/servo/util.py
+++ b/python/servo/util.py
@@ -19,6 +19,7 @@ import sys
import tarfile
import zipfile
import urllib2
+import certifi
def delete(path):
@@ -73,7 +74,7 @@ def download(desc, src, writer, start_byte=0):
req = urllib2.Request(src)
if start_byte:
req = urllib2.Request(src, headers={'Range': 'bytes={}-'.format(start_byte)})
- resp = urllib2.urlopen(req)
+ resp = urllib2.urlopen(req, cafile=certifi.where())
fsize = None
if resp.info().getheader('Content-Length'):