Update web-platform-tests to revision bd98c68802522edfae543a2a83dcd289c0972811

This commit is contained in:
WPT Sync Bot 2020-07-31 08:20:49 +00:00
parent 9b6b7935e6
commit b7430030f2
98 changed files with 711 additions and 264 deletions

View file

@ -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"