Fixed res.download() bug; when an error occurs remove Content-Disposition
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Previously if you tried to show a 404 page (or similar) on a failed res.download(), the browser would still prompt for download
authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 20af737 · Browse files · 2 files+11 added−0 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+11 added−0 removed
- tests:+10 added−0 removed
- other:+1 added−0 removed