mirror of
https://github.com/codl/forget
synced 2025-01-03 18:59:23 +01:00
return 404 on empty known instances cookie
that way it will use the default
This commit is contained in:
parent
ca5ccada19
commit
b4c332190e
@ -67,7 +67,7 @@ def known_instances():
|
||||
if request.method == 'GET':
|
||||
known = request.cookies.get('forget_known_instances', '')
|
||||
if not known:
|
||||
return Response('[]', 200, mimetype='application/json')
|
||||
return Response('[]', 404, mimetype='application/json')
|
||||
|
||||
# pad to avoid oracle attacks
|
||||
for _ in range(random.randint(0, 1000)):
|
||||
|
Loading…
Reference in New Issue
Block a user