Merge pull request #3020 from modoboa/pdf-credentials-name-fix

Small name fix for pdfcredentials on V1
This commit is contained in:
Antoine Nguyen
2023-06-30 16:36:07 +02:00
committed by GitHub
+1 -1
View File
@@ -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