Use .json.txt for diagnostics download filetype (#65236)

This commit is contained in:
Joakim Sørensen 2022-01-30 22:09:36 +01:00 committed by GitHub
parent 872bc456a9
commit 11ad1589fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -170,7 +170,7 @@ async def _async_get_json_file_response(
return web.Response(
body=json_data,
content_type="application/json",
headers={"Content-Disposition": f'attachment; filename="{filename}.json"'},
headers={"Content-Disposition": f'attachment; filename="{filename}.json.txt"'},
)