Skip to content
Myr

using connects error code util

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 30911f4 · Browse files · 2 files+3 added−1 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+3 added−1 removed

  • tests:+1 added−1 removed
  • other:+2 added−0 removed

2 files+3 added−1 removed

modified:lib/response.js+2 added
177 unmodified lines
178179 // callback180 options.callback = function(err){181 if (err) {182 if ('number' == typeof err) err = utils.error(err);183184 // ditch content-disposition to prevent funky responses185 if (!self.headerSent) self.removeHeader('Content-Disposition');186187 // forbidden
377 unmodified lines
modified:test/res.sendfile.js+1 added-1 removed