fix parameter ordering for RequestBody.create (#13778) (#13779)

This commit is contained in:
Andrew Hatch
2022-10-22 14:03:57 +01:00
committed by GitHub
parent 643b4f703e
commit 9e5c919560
6 changed files with 6 additions and 6 deletions

View File

@@ -983,7 +983,7 @@ public class ApiClient {
}
return RequestBody.create(content, MediaType.parse(contentType));
} else if (obj instanceof String) {
return RequestBody.create(MediaType.parse(contentType), (String) obj);
return RequestBody.create((String) obj, MediaType.parse(contentType));
} else {
throw new ApiException("Content type \"" + contentType + "\" is not supported");
}