You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2024/12/22 13:46:56 UTC
(httpcomponents-client) 02/02: fix(examples): Typo in ClientConfiguration example
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
commit 90da1663234b30079ee9c955313dde03b6a6f22d
Author: Patrick Neulichedl <pa...@hotmail.de>
AuthorDate: Mon Dec 2 10:11:01 2024 +0100
fix(examples): Typo in ClientConfiguration example
This was forgotten in commit: 04594b97a9e61931d3af6847b8f8335f0f91c460
---
.../org/apache/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<ClassicHttpRequest> 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<ManagedHttpClientConnection> 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,