Skip to content

Commit b9e34b3

Browse files
committed
Merged in [14843] from adam@nostrum.com:
Updated (deprecated, unregistered) 'text/json' with 'application/json' everwhere. - Legacy-Id: 14853 Note: SVN reference [14843] has been migrated to Git commit 3c4c0f2
2 parents c37e4df + 3c4c0f2 commit b9e34b3

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
});
@@ -496,7 +496,7 @@ ScheduledSlot.prototype.set_pinned = function(state, completefunc) {
496496
var ss = this;
497497
var pinned_struct = { "pinned" : state };
498498
var pinned_update = $.ajax(this.href, {
499-
"content-type": "text/json",
499+
"content-type": "application/json",
500500
"type": "PUT",
501501
"data": pinned_struct,
502502
});
@@ -539,7 +539,7 @@ function remove_from_slot_status(domid, ss_id) {
539539

540540
ScheduledSlot.prototype.deleteit = function() {
541541
var deleteit = $.ajax(this.href, {
542-
"content-type": "text/json",
542+
"content-type": "application/json",
543543
"type": "DELETE",
544544
});
545545
// 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)