A method that's called putJson should actually put JSON and not formdata...
This commit is contained in:
1 parent
6f83a175da
commit
8a7cf88f8d
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user