We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 876155f commit 59dbc3eCopy full SHA for 59dbc3e
extension/src/bg/background.js
@@ -207,7 +207,10 @@ async function perform_http_request(params) {
207
// If there is a request body, we decode it
208
// and set it for the request.
209
if (params.body) {
210
- request_options.body = atob(params.body);
+ // This is a hack to convert base64 to a Blob
211
+ const fetchURL = `data:application/octet-stream;base64,${params.body}`;
212
+ const fetchResp = await fetch(fetchURL);
213
+ request_options.body = await fetchResp.blob();
214
}
215
216
try {
0 commit comments