diff --git a/src/github.com/matrix-org/dendrite/cmd/mediaapi-integration-tests/main.go b/src/github.com/matrix-org/dendrite/cmd/mediaapi-integration-tests/main.go index 91a328590..8ba86a247 100644 --- a/src/github.com/matrix-org/dendrite/cmd/mediaapi-integration-tests/main.go +++ b/src/github.com/matrix-org/dendrite/cmd/mediaapi-integration-tests/main.go @@ -145,14 +145,7 @@ func main() { } func getMediaURI(scheme, host, endpoint string, components []string) string { - pathComponents := []string{ - host, - "api", - "_matrix", - "media", - "v1", - endpoint, - } + pathComponents := []string{host, "api/_matrix/media/v1", endpoint} pathComponents = append(pathComponents, components...) return scheme + path.Join(pathComponents...) }