diff --git a/ietf/group/views.py b/ietf/group/views.py index f80e4faea..255798063 100644 --- a/ietf/group/views.py +++ b/ietf/group/views.py @@ -1224,7 +1224,7 @@ def group_json(request, acronym): return HttpResponse(json.dumps(group.json_dict(request.build_absolute_uri('/')), sort_keys=True, indent=2), - content_type="text/json") + content_type="application/json") @cache_control(public=True, max_age=30*60) @cache_page(30 * 60) diff --git a/ietf/person/ajax.py b/ietf/person/ajax.py index e45f7d32c..88bd24687 100644 --- a/ietf/person/ajax.py +++ b/ietf/person/ajax.py @@ -10,5 +10,5 @@ def person_json(request, personid): return HttpResponse(json.dumps(person.json_dict(request.build_absolute_uri("/")), sort_keys=True, indent=2), - content_type="text/json") + content_type="application/json") diff --git a/ietf/static/ietf/js/agenda/agenda_objects.js b/ietf/static/ietf/js/agenda/agenda_objects.js index c5b57496a..bd16d5396 100644 --- a/ietf/static/ietf/js/agenda/agenda_objects.js +++ b/ietf/static/ietf/js/agenda/agenda_objects.js @@ -470,7 +470,7 @@ ScheduledSlot.prototype.saveit = function() { var stuff = JSON.stringify(stuffjson, null, '\t'); var saveit = $.ajax(assignments_post_href,{ - "content-type": "text/json", + "content-type": "application/json", "type": "POST", "data": stuff, }); @@ -491,7 +491,7 @@ ScheduledSlot.prototype.set_pinned = function(state, completefunc) { var ss = this; var pinned_struct = { "pinned" : state }; var pinned_update = $.ajax(this.href, { - "content-type": "text/json", + "content-type": "application/json", "type": "PUT", "data": pinned_struct, }); @@ -534,7 +534,7 @@ function remove_from_slot_status(domid, ss_id) { ScheduledSlot.prototype.deleteit = function() { var deleteit = $.ajax(this.href, { - "content-type": "text/json", + "content-type": "application/json", "type": "DELETE", }); // now nuke self! diff --git a/ietf/static/ietf/js/agenda/timeslot_edit.js b/ietf/static/ietf/js/agenda/timeslot_edit.js index fa3066746..1bcec141b 100644 --- a/ietf/static/ietf/js/agenda/timeslot_edit.js +++ b/ietf/static/ietf/js/agenda/timeslot_edit.js @@ -307,7 +307,7 @@ function insert_timeslotedit_cell(ts) { var purpose_struct = { "purpose" : newpurpose }; var purpose_update = $.ajax(ts.href, { - "content-type": "text/json", + "content-type": "application/json", "type": "PUT", "data": purpose_struct, }); @@ -364,7 +364,7 @@ function create_timeslotedit_cell(slot_id) { var new_timeslot_promise = $.ajax(meeting_slots_href, { - "content-type": "text/json", + "content-type": "application/json", "type": "POST", "data": ts, });