diff --git a/files/en-us/web/api/requestinit/index.md b/files/en-us/web/api/requestinit/index.md index fb6c8f7142d523f..a1b61feec6e02b8 100644 --- a/files/en-us/web/api/requestinit/index.md +++ b/files/en-us/web/api/requestinit/index.md @@ -272,7 +272,7 @@ async function post() { In this case the request will be sent with the following options: - `method: "POST"` -- `headers: ["Content-Type": "application/json"]` +- `headers: {"Content-Type": "application/json"}` - `body: '{"username":"example2"}'` - `referrer: ""`