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

This commit is contained in:
Joakim Sørensen
2022-01-30 20:28:28 -08:00
committed by Paulus Schoutsen
parent 26905115c8
commit 8e71e2e8ee
@@ -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"'},
)