Closed danawoodman closed 2 years ago
I believe right now sending FormData is broken as we are always stringifying the payload.
I believe we want to check if the payload is FormData and if so, pass it as-is:
FormData
payload: payload instanceof FormData ? payload : JSON.stringify(payload)
We should add tests to assert this expected behavior.
This is a placeholder for that work.
Agreed... def one of the things we need to support!
I've got this working locally, just updating/refactoring tests before I put up a PR
I believe right now sending FormData is broken as we are always stringifying the payload.
I believe we want to check if the payload is
FormData
and if so, pass it as-is:We should add tests to assert this expected behavior.
This is a placeholder for that work.