Преглед на файлове

fix 500 on bad HTTP Host

version-14
Pratik Vyas преди 11 години
родител
ревизия
afc0430f02
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      frappe/app.py

+ 1
- 1
frappe/app.py Целия файл

@@ -96,7 +96,7 @@ def init_site(request):
site = _site or request.headers.get('X-Frappe-Site-Name') or get_site_name(request.host) site = _site or request.headers.get('X-Frappe-Site-Name') or get_site_name(request.host)
frappe.init(site=site, sites_path=_sites_path) frappe.init(site=site, sites_path=_sites_path)
if not frappe.local.conf:
if not (frappe.local.conf and frappe.local.conf.db_name):
# site does not exist # site does not exist
raise NotFound raise NotFound


Зареждане…
Отказ
Запис