response headers to string
This commit is contained in:
parent
bc702c6c00
commit
4b5e7d80dd
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ def send_private_file(path):
|
|||
if frappe.local.request.headers.get('X-Use-X-Accel-Redirect'):
|
||||
path = '/protected/' + path
|
||||
response = Response()
|
||||
response.headers[b'X-Accel-Redirect'] = frappe.utils.encode(path)
|
||||
response.headers['X-Accel-Redirect'] = frappe.utils.encode(path)
|
||||
|
||||
else:
|
||||
filepath = frappe.utils.get_site_path(path)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue