From 79cf08eecf2da14a78bf49e203fc8dcdb790bfed Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Fri, 8 May 2015 11:15:41 -0700 Subject: [PATCH] Set contentType to JSON when sending session models Closes ipython/ipython#8416 --- jupyter_notebook/static/services/sessions/session.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jupyter_notebook/static/services/sessions/session.js b/jupyter_notebook/static/services/sessions/session.js index 923558df6..8eeaaf21c 100644 --- a/jupyter_notebook/static/services/sessions/session.js +++ b/jupyter_notebook/static/services/sessions/session.js @@ -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)