mirror of
https://github.com/servo/servo.git
synced 2025-07-01 20:43:39 +01:00
7 lines
303 B
Python
7 lines
303 B
Python
import helpers
|
|
|
|
def main(request, response):
|
|
"""Respond to `/cookie/set?{cookie}` by echoing `{cookie}` as a `Set-Cookie` header."""
|
|
headers = helpers.setNoCacheAndCORSHeaders(request, response)
|
|
headers.append(("Set-Cookie", request.url_parts.query))
|
|
return headers, '{"success": true}'
|