async-http-client icon indicating copy to clipboard operation
async-http-client copied to clipboard

Add configuration options to enable HttpClientCodec.allowDuplicateContentLengths flag

Open dgolombek opened this issue 2 years ago • 1 comments

We're using AsyncHttpClient to proxy requests, some of which contain multiple Content-Length flags, and for a few different reasons we don't want to remove the duplicates. Currently AHC doesn't allow configuration of that flag, nor is there any easy way to replace the ChannelManager with our own that does what we need. This will require two configuration variables in AHC, since HttpClientCodec doesn't have a builder interface so we'll need to set both parseHttpAfterConnectRequest and allowDuplicateContentLengths (both with defaults of false). I'll submit a PR to implement this.

dgolombek avatar Jun 23 '23 16:06 dgolombek

Sure, please do a PR. I will be happy to review it. :)

hyperxpro avatar Jun 23 '23 17:06 hyperxpro