Open BananaAcid opened 5 years ago
I'm not sure how Koa should fix an issue in request package?
By replacing it, since it reached EOL anyways. The appended link shows more about this issue.
No further development: https://github.com/request/request/issues/3142
Alternatives: https://github.com/request/request/issues/3143
This is since the middle of last year - transferring large files on slow connections, I get an error:
Error: You cannot pipe after data has been emitted from the response.
Any chance this gets replaced? always need to monkey patch. Quite annoying.
Solution: Do not use Koa
ctx.body = stream
. Return the stream directly. Code here: https://github.com/koajs/koa/issues/944#issuecomment-334961426