Skip to content

Commit

Permalink
unknown endpoints: allow PUT /_matrix/media/v3/upload
Browse files Browse the repository at this point in the history
As of MSC2246 [1], the PUT method is allowed on the
/_matrix/media/v3/upload endpoint.

See the spec documentation here:
https://spec.matrix.org/v1.7/client-server-api/#put_matrixmediav3uploadservernamemediaid

[1]: matrix-org/matrix-spec-proposals#2246

Signed-off-by: Sumner Evans <sumner@beeper.com>
  • Loading branch information
sumnerevans committed Jun 9, 2023
1 parent 68c7643 commit 1a729bd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/unknown_endpoints_test.go
Expand Up @@ -80,7 +80,5 @@ func TestUnknownEndpoints(t *testing.T) {
queryUnknownEndpoint(t, alice, []string{"_matrix", "media", "unknown"})
// v3 should exist, but not v3/unknown.
queryUnknownEndpoint(t, alice, []string{"_matrix", "media", "v3", "unknown"})

queryUnknownMethod(t, alice, "PUT", []string{"_matrix", "media", "v3", "upload"})
})
}

0 comments on commit 1a729bd

Please sign in to comment.