mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that JSON files should be downloaded properly from the storage manager. Fixes #7118
This commit is contained in:
committed by
Akshay Joshi
parent
04729f63b8
commit
deab1bfaba
@@ -1222,7 +1222,9 @@ class Filemanager(object):
|
||||
else:
|
||||
dir_path = os.path.dirname(path)
|
||||
|
||||
response = send_from_directory(dir_path, name, as_attachment=True)
|
||||
response = send_from_directory(dir_path, name,
|
||||
mimetype='application/octet-stream',
|
||||
as_attachment=True)
|
||||
response.headers["filename"] = name
|
||||
|
||||
return response
|
||||
|
||||
Reference in New Issue
Block a user