mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
fix(ext/fetch): fix error message of Request constructor (#10772)
This commit is contained in:
parent
7e4c387ae5
commit
56f6e57438
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@
|
||||||
((init.body !== undefined && init.body !== null) ||
|
((init.body !== undefined && init.body !== null) ||
|
||||||
inputBody !== null)
|
inputBody !== null)
|
||||||
) {
|
) {
|
||||||
throw new TypeError("HEAD and GET requests may not have a body.");
|
throw new TypeError("Request with GET/HEAD method cannot have body.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 34.
|
// 34.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue