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:
@ -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())
|
||||
|
Reference in New Issue
Block a user