fix: always warn Request.data (#1550)

This commit is contained in:
三咲智子 2022-07-12 06:45:16 +08:00 committed by GitHub
parent 1c5ed6b981
commit 4f43c9ed63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ export default class Request extends Body {
method = method.toUpperCase();
}
if ('data' in init) {
if (!isRequest(init) && 'data' in init) {
doBadDataWarn();
}