From f17a94828be182131b847ee9914f37ae05abcc83 Mon Sep 17 00:00:00 2001 From: Patrick Neulichedl Date: Mon, 2 Dec 2024 10:11:01 +0100 Subject: [PATCH] fix(examples): Typo in ClientConfiguration example This was forgotten in commit: 04594b97a9e61931d3af6847b8f8335f0f91c460 --- .../hc/client5/http/examples/ClientConfiguration.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientConfiguration.java b/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientConfiguration.java index fe548154c..a9acf0098 100644 --- a/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientConfiguration.java +++ b/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientConfiguration.java @@ -126,8 +126,8 @@ public class ClientConfiguration { }; final HttpMessageWriterFactory requestWriterFactory = new DefaultHttpRequestWriterFactory(); - // Create connection configuration - final CharCodingConfig connectionConfig = CharCodingConfig.custom() + // Create char coding configuration + final CharCodingConfig charCodingConfig = CharCodingConfig.custom() .setMalformedInputAction(CodingErrorAction.IGNORE) .setUnmappableInputAction(CodingErrorAction.IGNORE) .setCharset(StandardCharsets.UTF_8) @@ -138,7 +138,7 @@ public class ClientConfiguration { // configuration parameters HTTP connection factory can define message // parser / writer routines to be employed by individual connections. final HttpConnectionFactory connFactory = new ManagedHttpClientConnectionFactory( - h1Config, connectionConfig, requestWriterFactory, responseParserFactory); + h1Config, charCodingConfig, requestWriterFactory, responseParserFactory); // Client HTTP connection objects when fully initialized can be bound to // an arbitrary network socket. The process of network socket initialization,