mirror of
https://github.com/servo/servo.git
synced 2025-08-24 22:58:21 +01:00
Update web-platform-tests to revision b'c9f81de4242294a0d694ecd5a63155acfe6bf49a'
This commit is contained in:
parent
8c1703219d
commit
632afc64ae
403 changed files with 7449 additions and 5597 deletions
|
@ -21,8 +21,14 @@ def main(request, response):
|
|||
|
||||
name = request.GET[b'name']
|
||||
path = request.GET[b'path']
|
||||
samesite = request.GET.get(b'samesite')
|
||||
secure = b'secure' in request.GET
|
||||
expiry_year = date.today().year + 1
|
||||
cookie = b"%s=1; Path=%s; Expires=09 Jun %d 10:18:14 GMT" % (name, path, expiry_year)
|
||||
if samesite:
|
||||
cookie += b";SameSite=%s" % samesite
|
||||
if secure:
|
||||
cookie += b";Secure"
|
||||
|
||||
headers = [
|
||||
(b"Content-Type", b"application/json"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue