Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant