Skip to content

Add configuration options to enable HttpClientCodec.allowDuplicateContentLengths flag #1889

Open
@dgolombek

Description

@dgolombek

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions