Skip to content

Commit

Permalink
fix(examples): Typo in ClientConfiguration example
Browse files Browse the repository at this point in the history
This was forgotten in commit: 04594b9
  • Loading branch information
patrick-dedication authored and ok2c committed Dec 2, 2024
1 parent 7250fe0 commit bcac04e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ public Header parseHeader(final CharArrayBuffer buffer) {
};
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)
Expand All @@ -138,7 +138,7 @@ public Header parseHeader(final CharArrayBuffer buffer) {
// 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,
Expand Down

0 comments on commit bcac04e

Please sign in to comment.