forked from loafle/openapi-generator-original
@@ -1085,7 +1085,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");
|
||||
}
|
||||
|
||||
@@ -882,7 +882,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");
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
@@ -978,7 +978,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");
|
||||
}
|
||||
|
||||
@@ -984,7 +984,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");
|
||||
}
|
||||
|
||||
@@ -1003,7 +1003,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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user