mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-29 12:08:37 +01:00
Relax the requirement for a content-type on .well-known (#1824)
The main reason for this is that Apache etc won't stick a content-type on by default, because they don't know it's JSON, so requiring it seems like it will require unnecessary hoop-humping for everyone who wants to use a .well-known.
This commit is contained in:
parent
9f443225ac
commit
de57d3950f
|
|
@ -43,9 +43,9 @@ certificate validation, and following 30x redirects (being careful to avoid
|
|||
redirect loops). If the request does not return a 200, continue to step 4,
|
||||
otherwise:
|
||||
|
||||
The response must have a `Content-Type` of `application/json`, and must be
|
||||
valid JSON which follows the structure documented below. Otherwise, the
|
||||
request is aborted.
|
||||
The response must be valid JSON which follows the structure documented
|
||||
below. Otherwise, the request is aborted. It is NOT necessary for the response
|
||||
to have a `Content-Type` of `application/json`.
|
||||
|
||||
If the response is valid, the `m.server` property is parsed as
|
||||
`<delegated_server_name>[:<delegated_port>]`, and processed as follows:
|
||||
|
|
|
|||
Loading…
Reference in a new issue