mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-11 00:21:18 +00:00
update petstore sample
This commit is contained in:
@@ -585,8 +585,6 @@ public class ApiClient {
|
||||
List<Object> contentTypes = response.getHeaders().get("Content-Type");
|
||||
if (contentTypes != null && !contentTypes.isEmpty())
|
||||
contentType = String.valueOf(contentTypes.get(0));
|
||||
if (contentType == null)
|
||||
throw new ApiException(500, "missing Content-Type in response");
|
||||
|
||||
return response.readEntity(returnType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user