mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
Set contentType to JSON when sending session models
Closes ipython/ipython#8416
This commit is contained in:
parent
8893b178b1
commit
79cf08eecf
@ -121,6 +121,7 @@ define([
|
|||||||
cache: false,
|
cache: false,
|
||||||
type: "POST",
|
type: "POST",
|
||||||
data: JSON.stringify(this._get_model()),
|
data: JSON.stringify(this._get_model()),
|
||||||
|
contentType: 'application/json',
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: this._on_success(on_success),
|
success: this._on_success(on_success),
|
||||||
error: this._on_error(on_error)
|
error: this._on_error(on_error)
|
||||||
@ -168,6 +169,7 @@ define([
|
|||||||
cache: false,
|
cache: false,
|
||||||
type: "PATCH",
|
type: "PATCH",
|
||||||
data: JSON.stringify(this._get_model()),
|
data: JSON.stringify(this._get_model()),
|
||||||
|
contentType: 'application/json',
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: this._on_success(success),
|
success: this._on_success(success),
|
||||||
error: this._on_error(error)
|
error: this._on_error(error)
|
||||||
|
Loading…
Reference in New Issue
Block a user