2
0
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:
codl 2019-03-15 21:21:56 +01:00
parent ca5ccada19
commit b4c332190e
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A

View File

@ -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)):