diff --git a/webclient/http1/src/main/java/io/helidon/webclient/http1/Http1CallChainBase.java b/webclient/http1/src/main/java/io/helidon/webclient/http1/Http1CallChainBase.java index 3f616060f3d..ca0b0e9320d 100644 --- a/webclient/http1/src/main/java/io/helidon/webclient/http1/Http1CallChainBase.java +++ b/webclient/http1/src/main/java/io/helidon/webclient/http1/Http1CallChainBase.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023, 2024 Oracle and/or its affiliates. + * Copyright (c) 2023, 2025 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -277,7 +277,7 @@ private static boolean mayHaveEntity(Status responseStatus, ClientResponseHeader return false; } // Why is NOT_MODIFIED_304 not added here too? - if (responseStatus == Status.NO_CONTENT_204) { + if (responseStatus.code() == Status.NO_CONTENT_204.code()) { return false; } if (( diff --git a/webclient/tests/webclient/pom.xml b/webclient/tests/webclient/pom.xml index 7af7e955858..a2f62a32936 100644 --- a/webclient/tests/webclient/pom.xml +++ b/webclient/tests/webclient/pom.xml @@ -1,6 +1,6 @@