Skip to content

Commit 9437c47

Browse files
committed
fixed missing buffer in browser
1 parent bf6aeda commit 9437c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/woqlClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ WOQLClient.prototype.query = function (woql, commitMsg, allWitnesses, lastDataVe
674674
resourceObject.source.post = fileName;
675675
});
676676

677-
formData.append('payload', Buffer.from(JSON.stringify(doql)), { filename: 'body.json', contentType: 'application/json' });
677+
formData.append("payload", new Blob([JSON.stringify(doql)], { type: "application/json" }), "body.json");
678678
this.customHeaders(formData.getHeaders());
679679

680680
postBody = formData;

0 commit comments

Comments
 (0)