Skip to content

Commit

Permalink
Default fetch body option to undefined. Resolves #138.
Browse files Browse the repository at this point in the history
- `null` values cause issues with Edge's fetch implementation
- TODO: add test cases verifying fetch args, and consider browser testing to catch issues in vendor-specific implementations
  • Loading branch information
nason committed Jan 24, 2018
1 parent 2cc828f commit 7655a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware.js
Expand Up @@ -133,7 +133,7 @@ function apiMiddleware({ getState }) {
var res = await fetch(endpoint, {
...options,
method,
body,
body: body || undefined,
credentials,
headers: headers || {}
});
Expand Down

0 comments on commit 7655a34

Please sign in to comment.