mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
middleware: Fix typo in render_to_response migration.
This fixes a 500 on the invalid realm page.
This commit is contained in:
@@ -370,7 +370,7 @@ class SessionHostDomainMiddleware(SessionMiddleware):
|
||||
if subdomain != "":
|
||||
realm = get_realm(subdomain)
|
||||
if (realm is None):
|
||||
return render(render, "zerver/invalid_realm.html")
|
||||
return render(request, "zerver/invalid_realm.html")
|
||||
"""
|
||||
If request.session was modified, or if the configuration is to save the
|
||||
session every time, save the changes and set a session cookie.
|
||||
|
||||
Reference in New Issue
Block a user