0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-08 15:21:26 -05:00

fix(ext/fetch): fix error message of Request constructor (#10772)

This commit is contained in:
Yoshiya Hinosawa 2021-05-27 19:25:30 +09:00 committed by Bert Belder
parent a43d11fa32
commit c00f9ad515
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -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.