Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions jupyter_notebook/static/services/contents.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ define(function(require) {
processData : false,
type : "POST",
data: data,
contentType: 'application/json',
dataType : "json",
};
return utils.promising_ajax(this.api_url(path), settings);
Expand Down Expand Up @@ -181,6 +182,7 @@ define(function(require) {
processData : false,
type: "POST",
data: JSON.stringify({copy_from: from_file}),
contentType: 'application/json',
dataType : "json",
};
return utils.promising_ajax(url, settings);
Expand All @@ -194,6 +196,7 @@ define(function(require) {
var url = this.api_url(path, 'checkpoints');
var settings = {
type : "POST",
contentType: false, // no data
dataType : "json",
};
return utils.promising_ajax(url, settings);
Expand All @@ -213,6 +216,7 @@ define(function(require) {
var url = this.api_url(path, 'checkpoints', checkpoint_id);
var settings = {
type : "POST",
contentType: false, // no data
};
return utils.promising_ajax(url, settings);
};
Expand Down
3 changes: 3 additions & 0 deletions jupyter_notebook/static/services/kernels/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ define([
cache: false,
type: "POST",
data: JSON.stringify({name: this.name}),
contentType: 'application/json',
dataType: "json",
success: this._on_success(on_success),
error: this._on_error(error)
Expand Down Expand Up @@ -276,6 +277,7 @@ define([
processData: false,
cache: false,
type: "POST",
contentType: false, // there's no data with this
dataType: "json",
success: this._on_success(on_success),
error: this._on_error(error)
Expand Down Expand Up @@ -317,6 +319,7 @@ define([
processData: false,
cache: false,
type: "POST",
contentType: false, // there's no data with this
dataType: "json",
success: this._on_success(on_success),
error: this._on_error(on_error)
Expand Down
2 changes: 2 additions & 0 deletions jupyter_notebook/static/services/sessions/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down