mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-13 18:03:10 -06:00
cmd/mediaapi-integration-tests: Make HTTPS requests
This commit is contained in:
parent
8b9205062b
commit
9169bd2acd
|
|
@ -204,7 +204,7 @@ func testUpload(host, filePath, contentType, wantedBody string, wantedStatusCode
|
||||||
|
|
||||||
req, err := http.NewRequest(
|
req, err := http.NewRequest(
|
||||||
"POST",
|
"POST",
|
||||||
getMediaURI("http://", host, "upload", "?filename="+filename, nil),
|
getMediaURI("https://", host, "upload", "?filename="+filename, nil),
|
||||||
file,
|
file,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
@ -227,7 +227,7 @@ func testUpload(host, filePath, contentType, wantedBody string, wantedStatusCode
|
||||||
func testDownload(host, origin, mediaID, wantedBody string, wantedStatusCode int, serverCmdChan chan error) {
|
func testDownload(host, origin, mediaID, wantedBody string, wantedStatusCode int, serverCmdChan chan error) {
|
||||||
req, err := http.NewRequest(
|
req, err := http.NewRequest(
|
||||||
"GET",
|
"GET",
|
||||||
getMediaURI("http://", host, "download", "", []string{
|
getMediaURI("https://", host, "download", "", []string{
|
||||||
origin,
|
origin,
|
||||||
mediaID,
|
mediaID,
|
||||||
}),
|
}),
|
||||||
|
|
@ -251,7 +251,7 @@ func testThumbnail(width, height int, resizeMethod, host, origin, mediaID, wante
|
||||||
}
|
}
|
||||||
req, err := http.NewRequest(
|
req, err := http.NewRequest(
|
||||||
"GET",
|
"GET",
|
||||||
getMediaURI("http://", host, "thumbnail", query, []string{
|
getMediaURI("https://", host, "thumbnail", query, []string{
|
||||||
origin,
|
origin,
|
||||||
mediaID,
|
mediaID,
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue