Skip to content

HTTPClient should allow for setting own Accept-Encoding header #9861

Closed
@fleinze

Description

@fleinze

Related area

HTTPClient

Hardware specification

all ESP32 boards

Is your feature request related to a problem?

Currently the Library automatically adds the header "Accept-Encoding: identity;q=1,chunked;q=0.1,*;q=0\r\n", except when using HTTP1.0.
This can be a problem in some cases and can not be changed without editing the library source.
Adding a custom Accept-Encoding-header with addHeader() will result in two headers beeing sent.

Describe the solution you'd like

Add a function e.g. HTTPClient::setAcceptEncoding similar to HTTPClient::setUserAgent for overriding the default Accept-Encoding header.

Describe alternatives you've considered

No response

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions