Selaa lähdekoodia

[fix] Load private files having non-ascii characters when using Nginx's X-Accel-Redirect system

version-14
Anand Doshi 9 vuotta sitten
vanhempi
commit
e055ad221f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      frappe/utils/response.py

+ 1
- 1
frappe/utils/response.py Näytä tiedosto

@@ -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)


Ladataan…
Peruuta
Tallenna