mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-16 15:28:38 +00:00
perf: 修改 session type 序列🥱
This commit is contained in:
@@ -78,6 +78,7 @@ class DownloadUploadMixin:
|
||||
with open(zip_path, 'rb') as f:
|
||||
response = HttpResponse(f.read(), status=200, content_type='application/octet-stream')
|
||||
response['Content-Disposition'] = 'attachment; filename*=UTF-8\'\'{}.zip'.format(instance.name)
|
||||
os.unlink(zip_path)
|
||||
return response
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user