Skip to content

Commit 3c4c0f2

Browse files
committed
Updated (deprecated, unregistered) 'text/json' with 'application/json' everwhere. Commit ready for merge.
- Legacy-Id: 14843
1 parent 49f00b7 commit 3c4c0f2

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

ietf/group/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ def group_json(request, acronym):
12241224

12251225
return HttpResponse(json.dumps(group.json_dict(request.build_absolute_uri('/')),
12261226
sort_keys=True, indent=2),
1227-
content_type="text/json")
1227+
content_type="application/json")
12281228

12291229
@cache_control(public=True, max_age=30*60)
12301230
@cache_page(30 * 60)

ietf/person/ajax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ def person_json(request, personid):
1010

1111
return HttpResponse(json.dumps(person.json_dict(request.build_absolute_uri("/")),
1212
sort_keys=True, indent=2),
13-
content_type="text/json")
13+
content_type="application/json")
1414

ietf/static/ietf/js/agenda/agenda_objects.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ ScheduledSlot.prototype.saveit = function() {
470470
var stuff = JSON.stringify(stuffjson, null, '\t');
471471

472472
var saveit = $.ajax(assignments_post_href,{
473-
"content-type": "text/json",
473+
"content-type": "application/json",
474474
"type": "POST",
475475
"data": stuff,
476476
});
@@ -491,7 +491,7 @@ ScheduledSlot.prototype.set_pinned = function(state, completefunc) {
491491
var ss = this;
492492
var pinned_struct = { "pinned" : state };
493493
var pinned_update = $.ajax(this.href, {
494-
"content-type": "text/json",
494+
"content-type": "application/json",
495495
"type": "PUT",
496496
"data": pinned_struct,
497497
});
@@ -534,7 +534,7 @@ function remove_from_slot_status(domid, ss_id) {
534534

535535
ScheduledSlot.prototype.deleteit = function() {
536536
var deleteit = $.ajax(this.href, {
537-
"content-type": "text/json",
537+
"content-type": "application/json",
538538
"type": "DELETE",
539539
});
540540
// now nuke self!

ietf/static/ietf/js/agenda/timeslot_edit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ function insert_timeslotedit_cell(ts) {
307307

308308
var purpose_struct = { "purpose" : newpurpose };
309309
var purpose_update = $.ajax(ts.href, {
310-
"content-type": "text/json",
310+
"content-type": "application/json",
311311
"type": "PUT",
312312
"data": purpose_struct,
313313
});
@@ -364,7 +364,7 @@ function create_timeslotedit_cell(slot_id) {
364364

365365

366366
var new_timeslot_promise = $.ajax(meeting_slots_href, {
367-
"content-type": "text/json",
367+
"content-type": "application/json",
368368
"type": "POST",
369369
"data": ts,
370370
});

0 commit comments

Comments
 (0)