Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion extension/src/bg/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,10 @@ async function perform_http_request(params) {
// If there is a request body, we decode it
// and set it for the request.
if (params.body) {
request_options.body = atob(params.body);
// This is a hack to convert base64 to a Blob
const fetchURL = `data:application/octet-stream;base64,${params.body}`;
const fetchResp = await fetch(fetchURL);
request_options.body = await fetchResp.blob();
}

try {
Expand Down