fix(pdf): Remove unnecessary argument
https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote https://docs.python.org/2/library/urllib.html#urllib.quote
This commit is contained in:
parent
58867eb671
commit
175b974910
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