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:
Jessica McKellar 2012-08-28 16:46:02 -04:00
parent f6819d09d5
commit 4a6402f23c
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ def update(request):
if request.POST.get('pointer'): if request.POST.get('pointer'):
user_profile.pointer = request.POST.get("pointer") user_profile.pointer = request.POST.get("pointer")
user_profile.save() user_profile.save()
return HttpResponse(simplejson.dumps({}), mimetype='application/javascript') return HttpResponse(simplejson.dumps({}), mimetype='application/json')
def get_updates(request): def get_updates(request):
if not request.POST: if not request.POST:
@ -90,7 +90,7 @@ def get_updates(request):
}) })
return HttpResponse(simplejson.dumps(new_zephyr_list), return HttpResponse(simplejson.dumps(new_zephyr_list),
mimetype='application/javascript') mimetype='application/json')
@login_required @login_required
def personal_zephyr(request): def personal_zephyr(request):