AsyncHttpClient / async-http-client

Asynchronous Http and WebSocket Client library for Java
Other
6.29k stars 1.59k forks source link

Add config for allowDuplicateContentLengths #1890

Open dgolombek opened 1 year ago

dgolombek commented 1 year ago

Allow users to configure HttpClientCodec's parseHttpAfterConnectRequest and allowDuplicateContentLengths flags.

Fixes #1889

hyperxpro commented 1 year ago

PTAL at test cases

Error:  Failures: 
Error:    PerRequestRelative302Test.redirected302Test:86 expected: <403> but was: <200>
Error:    PerRequestRelative302Test.runAllSequentiallyBecauseNotThreadSafe:73->redirected302Test:86 expected: <403> but was: <200>