update petstore sample

This commit is contained in:
wing328
2017-11-17 23:39:12 +08:00
parent 9be12f9d03
commit da1702db03
3 changed files with 0 additions and 6 deletions

View File

@@ -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);
}

View File

@@ -586,8 +586,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);
}

View File

@@ -586,8 +586,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);
}