mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 21:14:09 +01:00
Apply suggestions from code review
This commit is contained in:
parent
15726ed62e
commit
2320b91a5f
|
|
@ -32,7 +32,7 @@ Similarly, all endpoints require the server to return a JSON object,
|
|||
with the exception of 200 responses to
|
||||
[`GET /_matrix/media/v3/download/{serverName}/{mediaId}`](#get_matrixmediav3downloadservernamemediaid)
|
||||
and [`GET /_matrix/media/v3/thumbnail/{serverName}/{mediaId}`](#get_matrixmediav3thumbnailservernamemediaid).
|
||||
Servers should include a `Content-Type` header of `application/json` for all JSON responses.
|
||||
Servers msut include a `Content-Type` header of `application/json` for all JSON responses.
|
||||
|
||||
All JSON data, in requests or responses, must be encoded using UTF-8.
|
||||
|
||||
|
|
|
|||
|
|
@ -43,10 +43,11 @@ communication.
|
|||
All `POST` and `PUT` endpoints, with the exception (for historical reasons) of [`POST
|
||||
/_matrix/identity/v2/account/logout`](#post_matrixidentityv2accountlogout),
|
||||
require the client to supply a request body containing a (potentially empty)
|
||||
JSON object. Clients are *not* required to supply a `Content-Type` header.
|
||||
JSON object. Clients should supply a `Content-Type` header of `application/json`
|
||||
for all requests with JSON bodies, but this is not required.
|
||||
|
||||
Similarly, all endpoints require the server to return a JSON object. Servers
|
||||
should include a `Content-Type` header of `application/json` for all JSON
|
||||
must include a `Content-Type` header of `application/json` for all JSON
|
||||
responses.
|
||||
|
||||
All JSON data, in requests or responses, must be encoded using UTF-8.
|
||||
|
|
|
|||
|
|
@ -53,10 +53,11 @@ specified in future as optional extensions.
|
|||
|
||||
All `POST` and `PUT` endpoints require the requesting server to supply a
|
||||
request body containing a (potentially empty) JSON object. Requesting servers
|
||||
are *not* required to supply a `Content-Type` header.
|
||||
should supply a `Content-Type` header of `application/json` for all requests
|
||||
with JSON bodies, but this is not required.
|
||||
|
||||
Similarly, all endpoints in this specification require the destination server
|
||||
to return a JSON object. Servers should include a `Content-Type` header of
|
||||
to return a JSON object. Servers must include a `Content-Type` header of
|
||||
`application/json` for all JSON responses.
|
||||
|
||||
All JSON data, in requests or responses, must be encoded using UTF-8.
|
||||
|
|
|
|||
Loading…
Reference in a new issue