Commit a64ad121 authored by Tristan Cavelier's avatar Tristan Cavelier

default blob type is "undefined" -> fixed to ""

parent 38110375
...@@ -75,7 +75,7 @@ function enableRestParamChecker(jio, shared) { ...@@ -75,7 +75,7 @@ function enableRestParamChecker(jio, shared) {
if (!(param.kwargs._blob instanceof Blob) && if (!(param.kwargs._blob instanceof Blob) &&
typeof param.kwargs._data === 'string') { typeof param.kwargs._data === 'string') {
param.kwargs._blob = new Blob([param.kwargs._data], { param.kwargs._blob = new Blob([param.kwargs._data], {
"type": param.kwargs._content_type || param.kwargs._mimetype "type": param.kwargs._content_type || param.kwargs._mimetype || ""
}); });
delete param.kwargs._data; delete param.kwargs._data;
delete param.kwargs._mimetype; delete param.kwargs._mimetype;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment