From f67e6ddd0247aafcd7615741dc0f20193a46a1c8 Mon Sep 17 00:00:00 2001 From: wbamberg Date: Fri, 21 Jun 2024 16:29:14 -0700 Subject: [PATCH] Update files/en-us/web/api/fetch_api/using_fetch/index.md Co-authored-by: Joshua Chen --- files/en-us/web/api/fetch_api/using_fetch/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/api/fetch_api/using_fetch/index.md b/files/en-us/web/api/fetch_api/using_fetch/index.md index 39675a6de7abac0..f365a19a6d4c58b 100644 --- a/files/en-us/web/api/fetch_api/using_fetch/index.md +++ b/files/en-us/web/api/fetch_api/using_fetch/index.md @@ -66,7 +66,7 @@ If the `mode` option is set to `no-cors`, then `method` must be one of `GET`, `P ### Setting a body -The request body is the payload of the request: it's the thing the client is sending to the server. You won't include a body with `GET` requests, but you will include it in requests that send content to the server, such as {{httpmethod("POST")}} or {{httpmethod("PUT")}} requests. For example, if you want to upload a file to the server, you might make a `POST` request and include the file as the request body. +The request body is the payload of the request: it's the thing the client is sending to the server. You cannot include a body with `GET` requests, but it's useful for requests that send content to the server, such as {{httpmethod("POST")}} or {{httpmethod("PUT")}} requests. For example, if you want to upload a file to the server, you might make a `POST` request and include the file as the request body. To set a request body, pass it as the `body` option: