Skip to content
Myr

Minor refactor of res.format

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

authored by Eduardo Sorribas · committed by Eduardo Sorribas · parent 69290ca · Browse files · 1 file+2 added−2 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−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

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