Switch build to HTTPS.

The online Closure Compiler drops http as of today.
This commit is contained in:
Neil Fraser
2017-10-27 16:44:45 -07:00
committed by Rachel Fenichel
parent 100a968d9f
commit 3bd608b6ae

View File

@@ -396,7 +396,7 @@ class Gen_compressed(threading.Thread):
def do_compile(self, params, target_filename, filenames, remove):
# Send the request to Google.
headers = {"Content-type": "application/x-www-form-urlencoded"}
conn = httplib.HTTPConnection("closure-compiler.appspot.com")
conn = httplib.HTTPSConnection("closure-compiler.appspot.com")
conn.request("POST", "/compile", urllib.urlencode(params), headers)
response = conn.getresponse()
json_str = response.read()