Skip to content
Myr

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

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 961146a · Browse files · 1 file+2 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

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:lib/response.js+2 added-1 removed
201 unmodified lines
202 }203204 // transfer the file205 this.attachment(filename || path).sendfile(path, function(err){206 // TODO: remove this _header hack when node is fixed206 if (err) self.removeHeader('Content-Disposition');207 if (err && !self._header) self.removeHeader('Content-Disposition');208 if (fn) return fn(err);209 if (err) {210 self.req.next('ENOENT' == err.code211 ? null
195 unmodified lines