Skip to content

Commit

Permalink
use HTTPS and utf-8 charset
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymoulin committed Oct 27, 2017
1 parent 776c7b0 commit ed5c7b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def main():
])

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

0 comments on commit ed5c7b8

Please sign in to comment.