Skip to content

Commit de57d39

Browse files
authored
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.
1 parent 9f44322 commit de57d39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

proposals/1708-well-known-for-federation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ certificate validation, and following 30x redirects (being careful to avoid
4343
redirect loops). If the request does not return a 200, continue to step 4,
4444
otherwise:
4545

46-
The response must have a `Content-Type` of `application/json`, and must be
47-
valid JSON which follows the structure documented below. Otherwise, the
48-
request is aborted.
46+
The response must be valid JSON which follows the structure documented
47+
below. Otherwise, the request is aborted. It is NOT necessary for the response
48+
to have a `Content-Type` of `application/json`.
4949

5050
If the response is valid, the `m.server` property is parsed as
5151
`<delegated_server_name>[:<delegated_port>]`, and processed as follows:

0 commit comments

Comments
 (0)