Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit ed5eaa7

Browse files
Use correct argument name for the media type
1 parent 478fb95 commit ed5eaa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpapi/media/BaseWPV2MediaRestClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ abstract class BaseWPV2MediaRestClient constructor(
216216
params["offset"] = offset.toString()
217217
}
218218
if (mimeType != null) {
219-
params["mime_type"] = mimeType.value
219+
params["media_type"] = mimeType.value
220220
}
221221
val response = executeGetGsonRequest(
222222
site,

0 commit comments

Comments
 (0)