Skip to content

Commit 21f0cfc

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 21f0cfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unknown_endpoints_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ func TestUnknownEndpoints(t *testing.T) {
8181
// v3 should exist, but not v3/unknown.
8282
queryUnknownEndpoint(t, alice, []string{"_matrix", "media", "v3", "unknown"})
8383

84-
queryUnknownMethod(t, alice, "PUT", []string{"_matrix", "media", "v3", "upload"})
84+
queryUnknownMethod(t, alice, "PATCH", []string{"_matrix", "media", "v3", "upload"})
8585
})
8686
}

0 commit comments

Comments
 (0)