mirror of https://github.com/zulip/zulip.git
Use the correct MIME type for the JSON we are sending and receiving.
http://www.ietf.org/rfc/rfc4627.txt http://www.iana.org/assignments/media-types/application/index.html (imported from commit d37e46a9db5077e2c7b1f39534875216df237e3c)
This commit is contained in:
parent
f6819d09d5
commit
4a6402f23c
|
@ -65,7 +65,7 @@ def update(request):
|
|||
if request.POST.get('pointer'):
|
||||
user_profile.pointer = request.POST.get("pointer")
|
||||
user_profile.save()
|
||||
return HttpResponse(simplejson.dumps({}), mimetype='application/javascript')
|
||||
return HttpResponse(simplejson.dumps({}), mimetype='application/json')
|
||||
|
||||
def get_updates(request):
|
||||
if not request.POST:
|
||||
|
@ -90,7 +90,7 @@ def get_updates(request):
|
|||
})
|
||||
|
||||
return HttpResponse(simplejson.dumps(new_zephyr_list),
|
||||
mimetype='application/javascript')
|
||||
mimetype='application/json')
|
||||
|
||||
@login_required
|
||||
def personal_zephyr(request):
|
||||
|
|
Loading…
Reference in New Issue