forked from loafle/openapi-generator-original
@@ -1024,10 +1024,11 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
try {
|
||||
response = sendRequest(method, invocationBuilder, entity);
|
||||
|
||||
int statusCode = response.getStatusInfo().getStatusCode();
|
||||
final int statusCode = response.getStatusInfo().getStatusCode();
|
||||
|
||||
Map<String, List<String>> responseHeaders = buildResponseHeaders(response);
|
||||
|
||||
if (response.getStatusInfo() == Status.NO_CONTENT) {
|
||||
if (statusCode == Status.NO_CONTENT.getStatusCode()) {
|
||||
return new ApiResponse<T>(statusCode, responseHeaders);
|
||||
} else if (response.getStatusInfo().getFamily() == Status.Family.SUCCESSFUL) {
|
||||
if (returnType == null) {
|
||||
|
||||
Reference in New Issue
Block a user