Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add a check if the res is destroyed before sending response
In the case of using `curl` or a similar tool on the command line, or if the client decides to end the request for a streamed file early without the check we would end up causing a server crash. Now, we will just not send the response as the client has already decided how to move on. fix: nestjs#10105