🔧 set Wandbox script to use HTTPS
This commit is contained in:
parent
1de30bc611
commit
afc30a14a7
15 changed files with 13 additions and 18 deletions
doc/scripts
|
@ -42,7 +42,7 @@ def strip_comments(text):
|
|||
# Post the given JSON data to Wandbox's API, and return the result
|
||||
# as a JSON object.
|
||||
def upload(options):
|
||||
request = urllib2.Request('http://melpon.org/wandbox/api/compile.json')
|
||||
request = urllib2.Request('https://melpon.org/wandbox/api/compile.json')
|
||||
request.add_header('Content-Type', 'application/json')
|
||||
response = urllib2.urlopen(request, json.dumps(options))
|
||||
return json.loads(response.read())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue