Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

fetch() can't handle Blob as body #1230

Open
belden opened this issue Apr 27, 2023 · 0 comments
Open

fetch() can't handle Blob as body #1230

belden opened this issue Apr 27, 2023 · 0 comments

Comments

@belden
Copy link

belden commented Apr 27, 2023

This client code:

const jsonString = JSON.stringify({my: 'payload'});
const blob = new Blob([jsonString], {type: 'text/plain;charset=utf-8'});
navigator.sendBeacon('https://my-dev-server', blob);

triggers a TypeError in zombie, originating here

else if (bodyInit)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant