summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/cors/resources/checkandremove.py
blob: 5cd7868199f32e3c8e3529172785267a1ad6ee3d (plain)
1
2
3
4
5
6
def main(request, response):
    token = request.GET.first(b"token")
    if request.server.stash.remove(token) is not None:
        return u"1"
    else:
        return u"0"