mirror of https://github.com/zulip/zulip.git
get_updates_longpoll: Add error handling for malformed input.
(imported from commit c44758acd2b3b07bed6536f70fa50e23fb4231b6)
This commit is contained in:
parent
2486a68621
commit
14ab1a7044
|
@ -130,8 +130,7 @@ def update(request):
|
|||
def get_updates_longpoll(request, handler):
|
||||
last_received = request.POST.get('last_received')
|
||||
if not last_received:
|
||||
# TODO: return error?
|
||||
pass
|
||||
return json_error("Missing last_received argument")
|
||||
|
||||
user = request.user
|
||||
user_profile = UserProfile.objects.get(user=user)
|
||||
|
|
Loading…
Reference in New Issue