Skip to content

Add configuration options to enable HttpClientCodec.allowDuplicateContentLengths flag #1889

Open
@dgolombek

Description

@dgolombek
Contributor

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.

Activity

hyperxpro

hyperxpro commented on Jun 23, 2023

@hyperxpro
Member

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

added a commit that references this issue on Jun 23, 2023
889992c
linked a pull request that will close this issue on Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @dgolombek@hyperxpro

      Issue actions

        Add configuration options to enable HttpClientCodec.allowDuplicateContentLengths flag · Issue #1889 · AsyncHttpClient/async-http-client