Skip to content

Allow for spaces after chunk size when parsing HTTP with Transfer-Encoding: chunked #52887

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

Closed
ognjenMarinkovic27 opened this issue Jul 8, 2023 · 2 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-_http

Comments

@ognjenMarinkovic27
Copy link

I've found that dart:http cannot parse HTTP chunk size when it contains spaces after the number, but before CRLF. In that case, it produces the error:

Failed to parse HTTP, 32 is expected to be a Hex digit

I've found this issue while working with ESPAsyncWebServer

Dart SDK Version: 3.0.5
OS: linux_x64

@lrhn lrhn added area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-_http labels Jul 8, 2023
@a-siva
Copy link
Contributor

a-siva commented Jul 24, 2023

A breaking change request to potentially fix this issue has been filed here #53005

@brianquinlan
Copy link
Contributor

This will be fixed in Dart 3.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-_http
Projects
None yet
Development

No branches or pull requests

4 participants