Skip to content
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

Open
ognjenMarinkovic27 opened this issue Jul 13, 2023 · 0 comments
Open

Comments

@ognjenMarinkovic27
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant