1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-06 06:42:33 +03:00

🔧 set Wandbox script to use HTTPS

This commit is contained in:
Niels Lohmann
2020-05-12 14:37:22 +02:00
parent 1de30bc611
commit afc30a14a7
15 changed files with 13 additions and 18 deletions

View File

@ -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())