Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: page.pdf producing an invalid pdf
When defining a chunk size for <CDPSession>.send('IO.read', { handle, size }), the CDPSession will occassionally indicate an that it has reached the end of file without sending a full pdf. This is documented by the associated issue. This behavior is not reproducable when leaving out the size parameter. Since the size parameter is not required on the CDPSession side and is merely a suggestion on the stream side, we can safely leave it out. Refs: puppeteer#7757
- Loading branch information