Skip to content

Commit 1a729bd

Browse files
committed
unknown endpoints: allow PUT /_matrix/media/v3/upload
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]>
1 parent 68c7643 commit 1a729bd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/unknown_endpoints_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,5 @@ func TestUnknownEndpoints(t *testing.T) {
8080
queryUnknownEndpoint(t, alice, []string{"_matrix", "media", "unknown"})
8181
// v3 should exist, but not v3/unknown.
8282
queryUnknownEndpoint(t, alice, []string{"_matrix", "media", "v3", "unknown"})
83-
84-
queryUnknownMethod(t, alice, "PUT", []string{"_matrix", "media", "v3", "upload"})
8583
})
8684
}

0 commit comments

Comments
 (0)