refactor: double meaning

pull/79/head
liuzheng712 2016-02-23 14:23:07 +08:00
parent b8a8c3ebf3
commit a037108cf3
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ def down_key(request):
f.close() f.close()
response = HttpResponse(data, content_type='application/octet-stream') response = HttpResponse(data, content_type='application/octet-stream')
response['Content-Disposition'] = 'attachment; filename=%s' % os.path.basename(private_key_file) 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 response
return HttpResponse('No Key File. Contact Admin.') return HttpResponse('No Key File. Contact Admin.')