Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Trailling spaces after chunk size, but before CRLF not allowed #1324

@ognjenMarinkovic27

Description

@ognjenMarinkovic27

In the implementation of ESPAsyncWebServer, spaces may be added to the end of HTTP chunk sizes, but before CRLF. This can usually be parsed by browsers but can cause bugs in certain cases (For example: Dart http library).

According to the HTTP/1.1 specification (RFC 7230), the chunk size in the chunked transfer encoding must be followed by a CRLF (carriage return + line feed) sequence. The specification does not allow trailing spaces after the chunk size before the CRLF.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions