servo/tests/wpt/web-platform-tests/background-fetch/resources/upload.py

3 lines
181 B
Python

# Simply returns the request body to check if the upload succeeded.
def main(request, response):
return 200, [(b"Content-Type", request.headers[b'content-type'])], request.body