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 <[email protected]>
  • Loading branch information
sumnerevans committed Jun 9, 2023
1 parent 68c7643 commit 21f0cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unknown_endpoints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ func TestUnknownEndpoints(t *testing.T) {
// v3 should exist, but not v3/unknown.
queryUnknownEndpoint(t, alice, []string{"_matrix", "media", "v3", "unknown"})

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

0 comments on commit 21f0cfc

Please sign in to comment.