Skip to content

Commit ed5c7b8

Browse files
committed
use HTTPS and utf-8 charset
1 parent 776c7b0 commit ed5c7b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def main():
1818
])
1919

2020
js_code.close()
21-
headers = { "Content-type": "application/x-www-form-urlencoded" }
22-
conn = http.client.HTTPConnection('closure-compiler.appspot.com')
21+
headers = { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8" }
22+
conn = http.client.HTTPSConnection('closure-compiler.appspot.com')
2323
conn.request('POST', '/compile', params, headers)
2424
response = conn.getresponse()
2525
data = response.read()

0 commit comments

Comments
 (0)