mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-01 06:45:55 +00:00
refactor: double meaning
This commit is contained in:
parent
b8a8c3ebf3
commit
a037108cf3
@ -466,7 +466,7 @@ def down_key(request):
|
||||
f.close()
|
||||
response = HttpResponse(data, content_type='application/octet-stream')
|
||||
response['Content-Disposition'] = 'attachment; filename=%s' % os.path.basename(private_key_file)
|
||||
os.unlink(private_key_file) # delete it
|
||||
os.unlink(private_key_file)
|
||||
return response
|
||||
return HttpResponse('No Key File. Contact Admin.')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user