matrix-org / matrix-org/matrix.org
https://matrix.org/.well-known/matrix/ returns inconsistent data
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 616
- Forks
- 463
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 19
Description
A request GET https://matrix.org/.well-known/matrix/ returns inconsistent data:
- the content-type is `application/json`
- the content is the Html 404 page.
@benbz suggested that the culprit could be located at https://github.com/matrix-org/matrix.org/blob/main/static/_headers#L17
Note: the problem is similar if any unknown path is added the the URI, for instance https://matrix.org/.well-known/matrix/foo
Also: this is probably a minor issue!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the response for https://matrix.org/.well-known/matrix/ and an unknown path such as /foo, then inspect static/_headers around line 17. Compare the content type with the returned body; done means these paths no longer return an HTML 404 page while being labeled application/json.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100