check X-Frappe-Site-Name for site
This commit is contained in:
parent
94c27d1440
commit
8df6919e4e
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ def application(request):
|
|||
return response
|
||||
|
||||
def init_site(request):
|
||||
site = _site 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)
|
||||
|
||||
if not frappe.local.conf:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue