A method that's called putJson should actually put JSON and not formdata...
This commit is contained in:
parent
6f83a175da
commit
8a7cf88f8d
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@
|
|||
};
|
||||
|
||||
OctoPrint.putJson = function(url, data, opts) {
|
||||
return OctoPrint.put(url, data, contentTypeJson(opts));
|
||||
return OctoPrint.put(url, JSON.stringify(data), contentTypeJson(opts));
|
||||
};
|
||||
|
||||
OctoPrint.patch = function(url, data, opts) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue