fix(file): download adds header Content-Length
fix(file): destroy output buffer before sending file
Merge pull request #6968 from tacid/patch-1

fix(file): download adds header Content-Length