Merge pull request #8822 from adityahase/fix-pdf-quote-encoding
fix(pdf): Remove unnecessary argument
This commit is contained in:
commit
0871db97f6
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ def as_json():
|
|||
def as_pdf():
|
||||
response = Response()
|
||||
response.mimetype = "application/pdf"
|
||||
encoded_filename = quote(frappe.response['filename'].replace(' ', '_'), encoding='utf-8')
|
||||
encoded_filename = quote(frappe.response['filename'].replace(' ', '_'))
|
||||
response.headers["Content-Disposition"] = ("filename=\"%s\"" % frappe.response['filename'].replace(' ', '_') + ";filename*=utf-8''%s" % encoded_filename).encode("utf-8")
|
||||
response.data = frappe.response['filecontent']
|
||||
return response
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue