Bug 1646413 [wpt PR 24196] - [CSP] drop unnecessary check in Python handler, a=testonly

Automatic update from web-platform-tests
[CSP] drop unnecessary check in Python handler (#24196)

--

wpt-commits: 0fc65fe18cfc8a86fe81b00dba1265d0b6cd159c
wpt-pr: 24196
This commit is contained in:
Philip Jägenstedt 2020-10-27 16:08:21 +00:00 коммит произвёл moz-wptsync-bot
Родитель 085cf83b85
Коммит be6d23c5ec
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -36,7 +36,7 @@ def main(request, response):
return [(b"Content-Type", b"application/json")], json.dumps({u'report_count': str(retrieve_from_stash(request, count_key, timeout, 0))})
# save cookies
if hasattr(request, u'cookies') and len(request.cookies.keys()) > 0:
if len(request.cookies.keys()) > 0:
# convert everything into strings and dump it into a dict so it can be jsoned
temp_cookies_dict = {}
for dict_key in request.cookies.keys():