Java Jersey glassfish fix renewing OAuth-Accesstoken #14734 (#14735)

This commit is contained in:
sbilz
2023-02-25 15:01:33 +01:00
committed by GitHub
parent 5c9999b7cf
commit f4e53db8cf
9 changed files with 34 additions and 25 deletions

View File

@@ -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) {