Switch compile to HTTPS.

This commit is contained in:
Neil Fraser
2017-10-27 16:40:55 -07:00
committed by Rachel Fenichel
parent 2ff345fa4e
commit 905d542ae5

View File

@@ -355,7 +355,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()