Skip to content

ESP8266HTTPClient sets Content-Length even on empty GET-requests #9200

Open
@dakhnod

Description

@dakhnod

Basic Infos

  • This issue complies with the issue POLICY doc.
  • I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • If there is a stack dump, I have decoded it.
  • I have filled out all fields below.

Platform

  • Hardware: ESP8266
  • Core Version:
  • Development Env: Any
  • Operating System: Any

Settings in IDE

Problem Description

Due to this line, the HTTP client always sets the Content-Length header.
I think this header should be omitted for GET-requests with a length of 0.

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