Commit a96d6603 authored by Chris Dickinson's avatar Chris Dickinson Committed by Fedor Indutny
Browse files

stream2: flush extant data on read of ended stream



A ReadableStream with a base64 StringDecoder backed by only
one or two bytes would fail to output its partial data before
ending. This fix adds a check to see if the `read` was triggered
by an internal `flow`, and if so, empties any remaining data.

fixes #7914.

Signed-off-by: default avatarFedor Indutny <fedor@indutny.com>
parent 7f86baf5
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment