mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision bd98c68802522edfae543a2a83dcd289c0972811
This commit is contained in:
parent
9b6b7935e6
commit
b7430030f2
98 changed files with 711 additions and 264 deletions
|
@ -1,3 +1,5 @@
|
|||
from wptserve.utils import isomorphic_decode
|
||||
|
||||
def main(request, response):
|
||||
if request.method == u'OPTIONS':
|
||||
# CORS preflight
|
||||
|
@ -9,6 +11,7 @@ def main(request, response):
|
|||
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)
|
||||
# value here must be a text string. It will be json.dump()'ed in stash-take.py.
|
||||
request.server.stash.put(key, isomorphic_decode(value), url_dir)
|
||||
response.headers.set(b'Access-Control-Allow-Origin', b'*')
|
||||
return "done"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue