Skip to content
Myr

refactor res.format() with a little ocd

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 1c87e5e · Browse files · 1 file+1 added−3 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+1 added−3 removed

  • other:+1 added−3 removed

1 file+1 added−3 removed

modified:lib/response.js+1 added-3 removed
468 unmodified lines
469470 if (key) {471 var type = normalizeType(key).value;472 var charset = mime.charsets.lookup(type);473 if (charset) {474 type += '; charset=' + charset;475 }473 if (charset) type += '; charset=' + charset;474 this.set('Content-Type', type);475 obj[key](req, this, next);476 } else if (fn) {477 fn();
327 unmodified lines