Skip to content

Commit 4f43c9e

Browse files
authored
fix: always warn Request.data (node-fetch#1550)
1 parent 1c5ed6b commit 4f43c9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default class Request extends Body {
6565
method = method.toUpperCase();
6666
}
6767

68-
if ('data' in init) {
68+
if (!isRequest(init) && 'data' in init) {
6969
doBadDataWarn();
7070
}
7171

0 commit comments

Comments
 (0)