зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
085cf83b85
Коммит
be6d23c5ec
|
@ -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():
|
||||
|
|
Загрузка…
Ссылка в новой задаче