fix(upload): return type on is now a string (#976)
* fix(upload): return type on POST is now string A POST to a webserver can not always be expected to be a JSON response. Success is now determined by the HTTP return code. Upon success the body content is returned as a string. * feat: add content-length on POST Not all embedded devices are acceptable to receiving unspecified amounts of data. Appending the content-length up front helps this devices succeed. * fix: return values unified The return values was not used. On POST the HTTP error code is returned as an enum. * fix: upload, return value as string * Update plugins/upload/src/lib.rs Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app> * Update plugins/upload/src/lib.rs Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app> * fix: added covector changelog file --------- Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>pull/502/head
parent
9144521b90
commit
4a5ab18a22
@ -0,0 +1,6 @@
|
||||
---
|
||||
"upload": patch
|
||||
"upload-js": patch
|
||||
---
|
||||
|
||||
Return the upload response as a string and error out if the status code is not within 200-299.
|
Loading…
Reference in new issue