mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
Fix json_unauthorized.
(imported from commit 7537b3bbc21b947f91ec49060935e9e2f92be0ac)
This commit is contained in:
@@ -11,9 +11,9 @@ class HttpResponseUnauthorized(HttpResponse):
|
||||
self["WWW-Authenticate"] = 'Basic realm="%s"' % (realm,)
|
||||
|
||||
def json_unauthorized(message):
|
||||
resp = HttpResponseUnauthorized("humbug")
|
||||
resp = HttpResponseUnauthorized("zulip")
|
||||
resp.content = ujson.dumps({"result": "error",
|
||||
"msg": message})
|
||||
"msg": message}) + "\n"
|
||||
return resp
|
||||
|
||||
def json_method_not_allowed(methods):
|
||||
|
||||
Reference in New Issue
Block a user