← expressjs/express

CODEFOSSIL · express

res.download

method in lib/response.js:437 · Born 2011-02-04 (DERIVED, confidence 1.00)

15years old
16changes
2fixes
7authors
2callers
2012201320142015201620172018201920202021202220232024202520262011-03-01 59a74ec refactoring to use connects static server2011-03-02 9b1cc75 res.download() and res.sendfile() using connect now2011-04-11 1abb674 temp fix for nodes res.removeHeader() after sent "bug"2011-04-11 759a57b Added second callback support for res.download() connection errors2011-04-24 aa68581 misc refactor2011-08-18 d3ccdbc build `res.download()` on top of `res.sendfile()`2012-05-11 5840b42 Added res.download() tests2014-04-20 56b672e support non-ascii filenames in content-disposition headers2014-07-03 ce3d1fe Add headers option to res.sendfile2014-08-06 1150ca7 Fix incorrect deprecation warnings on res.download2014-10-18 0e56133 Use content-disposition module2015-06-20 bb53b20 perf: remove argument reassignments in response prototype2017-09-28 a24fd0c Add options to res.download2022-03-25 0def9bb Add "root" option to res.download2022-03-25 03dc367 Allow options without filename in res.download2026-06-16 59e205a Upgrade `content-disposition` (#7233)2011-02-04 99820e7 Refactored req/res proto assignments
Every commit that changed it, 2011-02-04 – 2026-06-16. Raised orange dots are fixes.
  1. Changed Upgrade `content-disposition` (#7233)

    59e205a · Blake Embrey

  2. Changed Allow options without filename in res.download

    03dc367 · Douglas Christopher Wilson

  3. Changed Add "root" option to res.download

    0def9bb · Tommaso Tofacchi

  4. Changed Add options to res.download

    a24fd0c · Aaron Clover

  5. Changed perf: remove argument reassignments in response prototype

    bb53b20 · Douglas Christopher Wilson

  6. Changed Use content-disposition module

    0e56133 · Douglas Christopher Wilson

  7. Changed Fix incorrect deprecation warnings on res.download

    1150ca7 · Douglas Christopher Wilson fix · INFERRED

  8. Changed Add headers option to res.sendfile

    ce3d1fe · Douglas Christopher Wilson

  9. Changed support non-ascii filenames in content-disposition headers

    56b672e · Andy VanWagoner

  10. Changed Added res.download() tests

    5840b42 · TJ Holowaychuk

  11. Changed build `res.download()` on top of `res.sendfile()`

    d3ccdbc · Tj Holowaychuk

  12. Changed misc refactor

    aa68581 · Tj Holowaychuk

  13. Changed Added second callback support for res.download() connection errors

    759a57b · Tj Holowaychuk

  14. Changed temp fix for nodes res.removeHeader() after sent "bug"

    1abb674 · Tj Holowaychuk fix · INFERRED

  15. Changed res.download() and res.sendfile() using connect now

    9b1cc75 · Tj Holowaychuk

  16. Changed refactoring to use connects static server

    59a74ec · Tj Holowaychuk

  17. Born Refactored req/res proto assignments

    99820e7 · Tj Holowaychuk