diff options
| author | Yoshiya Hinosawa <stibium121@gmail.com> | 2021-05-27 19:25:30 +0900 |
|---|---|---|
| committer | Bert Belder <bertbelder@gmail.com> | 2021-05-31 16:37:35 +0200 |
| commit | c00f9ad515561921894580d6d7132f65e70eae0a (patch) | |
| tree | d288737dbbc1a4283be69a020c3890a344bd07c3 /extensions | |
| parent | a43d11fa3278cab3467d03f70079527736fe9c52 (diff) | |
fix(ext/fetch): fix error message of Request constructor (#10772)
Diffstat (limited to 'extensions')
| -rw-r--r-- | extensions/fetch/23_request.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/fetch/23_request.js b/extensions/fetch/23_request.js index d8369b404..de1bdd211 100644 --- a/extensions/fetch/23_request.js +++ b/extensions/fetch/23_request.js @@ -273,7 +273,7 @@ ((init.body !== undefined && init.body !== 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. |
