mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
fix notebook upload
pythonnism + PUT instead of POST
This commit is contained in:
parent
bc0dc279f1
commit
79f1edc5e9
@ -71,7 +71,7 @@ var IPython = (function (IPython) {
|
||||
reader.readAsText(f);
|
||||
var name_and_ext = utils.splitext(f.name);
|
||||
var nbname = name_and_ext[0];
|
||||
var file_ext = name_and_ext[-1];
|
||||
var file_ext = name_and_ext[1];
|
||||
if (file_ext === '.ipynb') {
|
||||
var item = that.new_notebook_item(0);
|
||||
that.add_name_input(nbname, item);
|
||||
@ -326,7 +326,7 @@ var IPython = (function (IPython) {
|
||||
var settings = {
|
||||
processData : false,
|
||||
cache : false,
|
||||
type : 'POST',
|
||||
type : 'PUT',
|
||||
dataType : 'json',
|
||||
data : JSON.stringify(model),
|
||||
headers : {'Content-Type': content_type},
|
||||
|
Loading…
Reference in New Issue
Block a user