mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision 8ba782c9d5a545b850cd8920032cb14cfbab2c35
This commit is contained in:
parent
b17a302356
commit
986610f6ed
91 changed files with 1030 additions and 429 deletions
|
@ -1,14 +1,14 @@
|
|||
def main(request, response):
|
||||
if request.method == 'OPTIONS':
|
||||
if request.method == u'OPTIONS':
|
||||
# CORS preflight
|
||||
response.headers.set('Access-Control-Allow-Origin', '*')
|
||||
response.headers.set('Access-Control-Allow-Methods', '*')
|
||||
response.headers.set('Access-Control-Allow-Headers', '*')
|
||||
response.headers.set(b'Access-Control-Allow-Origin', b'*')
|
||||
response.headers.set(b'Access-Control-Allow-Methods', b'*')
|
||||
response.headers.set(b'Access-Control-Allow-Headers', b'*')
|
||||
return 'done'
|
||||
|
||||
url_dir = '/'.join(request.url_parts.path.split('/')[:-1]) + '/'
|
||||
key = request.GET.first("key")
|
||||
value = request.GET.first("value")
|
||||
url_dir = u'/'.join(request.url_parts.path.split(u'/')[:-1]) + u'/'
|
||||
key = request.GET.first(b"key")
|
||||
value = request.GET.first(b"value")
|
||||
request.server.stash.put(key, value, url_dir)
|
||||
response.headers.set('Access-Control-Allow-Origin', '*')
|
||||
response.headers.set(b'Access-Control-Allow-Origin', b'*')
|
||||
return "done"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue