fix(examples): Typo in ClientConfiguration example
This was forgotten in commit: 04594b97a9
This commit is contained in:
parent
3d02046810
commit
f17a94828b
|
@ -126,8 +126,8 @@ public class ClientConfiguration {
|
||||||
};
|
};
|
||||||
final HttpMessageWriterFactory<ClassicHttpRequest> requestWriterFactory = new DefaultHttpRequestWriterFactory();
|
final HttpMessageWriterFactory<ClassicHttpRequest> requestWriterFactory = new DefaultHttpRequestWriterFactory();
|
||||||
|
|
||||||
// Create connection configuration
|
// Create char coding configuration
|
||||||
final CharCodingConfig connectionConfig = CharCodingConfig.custom()
|
final CharCodingConfig charCodingConfig = CharCodingConfig.custom()
|
||||||
.setMalformedInputAction(CodingErrorAction.IGNORE)
|
.setMalformedInputAction(CodingErrorAction.IGNORE)
|
||||||
.setUnmappableInputAction(CodingErrorAction.IGNORE)
|
.setUnmappableInputAction(CodingErrorAction.IGNORE)
|
||||||
.setCharset(StandardCharsets.UTF_8)
|
.setCharset(StandardCharsets.UTF_8)
|
||||||
|
@ -138,7 +138,7 @@ public class ClientConfiguration {
|
||||||
// configuration parameters HTTP connection factory can define message
|
// configuration parameters HTTP connection factory can define message
|
||||||
// parser / writer routines to be employed by individual connections.
|
// parser / writer routines to be employed by individual connections.
|
||||||
final HttpConnectionFactory<ManagedHttpClientConnection> connFactory = new ManagedHttpClientConnectionFactory(
|
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
|
// Client HTTP connection objects when fully initialized can be bound to
|
||||||
// an arbitrary network socket. The process of network socket initialization,
|
// an arbitrary network socket. The process of network socket initialization,
|
||||||
|
|
Loading…
Reference in New Issue