Skip to content

Commit

Permalink
fix: always warn Request.data (#1550)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jul 11, 2022
1 parent 1c5ed6b commit 4f43c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request.js
Expand Up @@ -65,7 +65,7 @@ export default class Request extends Body {
method = method.toUpperCase();
}

if ('data' in init) {
if (!isRequest(init) && 'data' in init) {
doBadDataWarn();
}

Expand Down

0 comments on commit 4f43c9e

Please sign in to comment.