|
|
@@ -136,7 +136,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'] = path |
|
|
|
response.headers[b'X-Accel-Redirect'] = frappe.utils.encode(path) |
|
|
|
|
|
|
|
else: |
|
|
|
filepath = frappe.utils.get_site_path(path) |
|
|
|