middleware: Fix typo in render_to_response migration.

This fixes a 500 on the invalid realm page.
This commit is contained in:
Tim Abbott
2017-03-21 01:27:49 -07:00
parent 831a467fa3
commit c2c02ea4da

View File

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