1
0
Fork 0
firefox/testing/web-platform/tests/device-bound-session-credentials/set_cookie.py
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

8 lines
367 B
Python

import importlib
session_manager = importlib.import_module('device-bound-session-credentials.session_manager')
# The client will ask the server to set a cookie, because client code can't
# always do so itself (e.g. HttpOnly attribute).
def main(request, response):
request_body = request.body.decode('utf-8')
return (200, [("Set-Cookie", request_body)], "")