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

RqLengthAware wrongly assumes available gives a good indication about number of bytes to read when no content length is aviable #1301

Closed
laeubi opened this issue Jun 21, 2024 · 0 comments · Fixed by #1302

Comments

@laeubi
Copy link

laeubi commented Jun 21, 2024

RqLengthAware uses available in case of no content length is found, this is simply wrong, according to the docs this:

Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected.

The default implementation even return always 0....

instead it should simply return the stream as is if the content length can't be computed!

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

Successfully merging a pull request may close this issue.

1 participant