Skip to content

Commit 8d43a43

Browse files
Fix for comparison of unauthorised check (#1136)
1 parent ae97dc4 commit 8d43a43

File tree

1 file changed

+1
-1
lines changed
  • cloudfoundry-client-reactor/src/main/java/org/cloudfoundry/reactor/util

1 file changed

+1
-1
lines changed

cloudfoundry-client-reactor/src/main/java/org/cloudfoundry/reactor/util/Operator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public <T> Mono<T> parseBodyToToken(Function<HttpClientResponseWithBody, Publish
214214
}
215215

216216
private static boolean isUnauthorized(HttpClientResponseWithConnection response) {
217-
return response.getResponse().status() == HttpResponseStatus.UNAUTHORIZED;
217+
return HttpResponseStatus.UNAUTHORIZED.equals(response.getResponse().status());
218218
}
219219

220220
private void addJsonDecoderToChannelHandlers() {

0 commit comments

Comments
 (0)