blob: 71f5a9d488d7a1b1f76ce77607fe8bee232940d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
from urllib.parse import parse_qs
from wptserve.utils import isomorphic_encode
def main(req, res):
qs_cookie_val = parse_qs(req.url_parts.query).get(u'set-cookie-notification')
if qs_cookie_val:
res.set_cookie(b'notification', isomorphic_encode(qs_cookie_val[0]))
return b'not really an icon'
|