Set contentType to JSON when sending session models

Closes ipython/ipython#8416
This commit is contained in:
Thomas Kluyver 2015-05-08 11:15:41 -07:00
parent 8893b178b1
commit 79cf08eecf

View File

@ -121,6 +121,7 @@ define([
cache: false,
type: "POST",
data: JSON.stringify(this._get_model()),
contentType: 'application/json',
dataType: "json",
success: this._on_success(on_success),
error: this._on_error(on_error)
@ -168,6 +169,7 @@ define([
cache: false,
type: "PATCH",
data: JSON.stringify(this._get_model()),
contentType: 'application/json',
dataType: "json",
success: this._on_success(success),
error: this._on_error(error)