mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +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,
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user