From 21d5bc72434f613c54ec9726015e469dfb02a426 Mon Sep 17 00:00:00 2001 From: Vyacheslav Abushkevich Date: Fri, 4 Mar 2022 20:42:12 +0300 Subject: [PATCH] fix: replace `form/multipart` with `multipart/form-data` --- 5-network/01-fetch/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/5-network/01-fetch/article.md b/5-network/01-fetch/article.md index 688db2ba..a295b991 100644 --- a/5-network/01-fetch/article.md +++ b/5-network/01-fetch/article.md @@ -195,7 +195,7 @@ To make a `POST` request, or a request with another method, we need to use `fetc - **`method`** -- HTTP-method, e.g. `POST`, - **`body`** -- the request body, one of: - a string (e.g. JSON-encoded), - - `FormData` object, to submit the data as `form/multipart`, + - `FormData` object, to submit the data as `multipart/form-data`, - `Blob`/`BufferSource` to send binary data, - [URLSearchParams](info:url), to submit the data in `x-www-form-urlencoded` encoding, rarely used. @@ -304,7 +304,7 @@ Response properties: Methods to get response body: - **`response.text()`** -- return the response as text, - **`response.json()`** -- parse the response as JSON object, -- **`response.formData()`** -- return the response as `FormData` object (form/multipart encoding, see the next chapter), +- **`response.formData()`** -- return the response as `FormData` object (`multipart/form-data` encoding, see the next chapter), - **`response.blob()`** -- return the response as [Blob](info:blob) (binary data with type), - **`response.arrayBuffer()`** -- return the response as [ArrayBuffer](info:arraybuffer-binary-arrays) (low-level binary data),