From b9f3fe1ebca98e1d32c1eb5b5fa637907f941cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Kr=C3=A1l?= Date: Wed, 24 Jan 2024 17:51:29 +0100 Subject: [PATCH] Http client protocol creation not honoring disabled service discovery (#8284) Http client protocol creation not honoring disabled service discovery fixed Signed-off-by: David Kral --- .../io/helidon/webclient/http1/Http1ClientSpiProvider.java | 3 ++- .../io/helidon/webclient/http2/Http2ClientSpiProvider.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/webclient/http1/src/main/java/io/helidon/webclient/http1/Http1ClientSpiProvider.java b/webclient/http1/src/main/java/io/helidon/webclient/http1/Http1ClientSpiProvider.java index 602f5abfa86..b38d54b2036 100644 --- a/webclient/http1/src/main/java/io/helidon/webclient/http1/Http1ClientSpiProvider.java +++ b/webclient/http1/src/main/java/io/helidon/webclient/http1/Http1ClientSpiProvider.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Oracle and/or its affiliates. + * Copyright (c) 2023, 2024 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. @@ -52,6 +52,7 @@ public HttpClientSpi protocol(WebClient client, Http1ClientProtocolConfig config Http1ClientConfig.builder() .from(client.prototype()) .protocolConfig(config) + .servicesDiscoverServices(false) .buildPrototype()); } } diff --git a/webclient/http2/src/main/java/io/helidon/webclient/http2/Http2ClientSpiProvider.java b/webclient/http2/src/main/java/io/helidon/webclient/http2/Http2ClientSpiProvider.java index 75e28bbbe32..a210f3aff3e 100644 --- a/webclient/http2/src/main/java/io/helidon/webclient/http2/Http2ClientSpiProvider.java +++ b/webclient/http2/src/main/java/io/helidon/webclient/http2/Http2ClientSpiProvider.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Oracle and/or its affiliates. + * Copyright (c) 2023, 2024 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. @@ -51,6 +51,7 @@ public HttpClientSpi protocol(WebClient client, Http2ClientProtocolConfig config Http2ClientConfig.builder() .from(client.prototype()) .protocolConfig(config) + .servicesDiscoverServices(false) .buildPrototype()); } }