Skip to content

Commit

Permalink
fix: allow string as body (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjin authored and fhinkel committed Sep 18, 2018
1 parent dc7272b commit 204c34e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ const requestToFetchOptions: RequestToFetchOptions =
} else {
if (typeof reqOpts.body !== 'string') {
options.body = JSON.stringify(reqOpts.body);
} else {
options.body = reqOpts.body;
}
}

Expand Down

0 comments on commit 204c34e

Please sign in to comment.