mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Merge pull request #3020 from modoboa/pdf-credentials-name-fix
Small name fix for pdfcredentials on V1
This commit is contained in:
@@ -32,5 +32,5 @@ def get_account_credentials(request, accountid):
|
||||
resp = HttpResponse(content)
|
||||
resp["Content-Type"] = "application/pdf"
|
||||
resp["Content-Length"] = len(content)
|
||||
resp["Content-Disposition"] = f"attachment; filename={fname};"
|
||||
resp["Content-Disposition"] = f"attachment; filename={os.path.basename(fname)};"
|
||||
return resp
|
||||
|
||||
Reference in New Issue
Block a user