Skip to content

Commit df16522

Browse files
Use HTTPS instead of HTTP in build.py
https://groups.google.com/forum/#!topic/blockly/EDxPuJQ37RI Closure compiler no longer accepts HTTP requests, as of last Thursday. It is now HTTPS only.
1 parent fe1a2a6 commit df16522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blockly/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def gen_generator(self, language):
270270
def do_compile(self, params, target_filename, filenames, remove):
271271
# Send the request to Google.
272272
headers = {"Content-type": "application/x-www-form-urlencoded"}
273-
conn = httplib.HTTPConnection("closure-compiler.appspot.com")
273+
conn = httplib.HTTPSConnection("closure-compiler.appspot.com")
274274
conn.request("POST", "/compile", urllib.urlencode(params), headers)
275275
response = conn.getresponse()
276276
json_str = response.read()

0 commit comments

Comments
 (0)