diff --git a/webclient/tests/webclient/src/test/java/io/helidon/webclient/tests/MutualTlsTest.java b/webclient/tests/webclient/src/test/java/io/helidon/webclient/tests/MutualTlsTest.java index 42aa3fcf164..ed41bc0e0a1 100644 --- a/webclient/tests/webclient/src/test/java/io/helidon/webclient/tests/MutualTlsTest.java +++ b/webclient/tests/webclient/src/test/java/io/helidon/webclient/tests/MutualTlsTest.java @@ -185,7 +185,7 @@ private static void mTlsRouting(HttpRouting.Builder routing) { // close to avoid re-using cached connections on the client side res.header(Http.Headers.CONNECTION_CLOSE); - res.send("Hello " + req.headers().value(X_HELIDON_CN).orElse("Unknown CN") + "!"); + res.send("Hello " + req.headers().get(X_HELIDON_CN).value() + "!"); }); }