Skip to content
Myr

docs

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 eb3105e · Browse files · 1 file+2 added−0 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−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:lib/response.js+2 added
352 unmodified lines
353 ? keys[i]354 : mime.lookup(keys[i]));355 }356357 // determine most acceptable format358 out:359 for (var i = 0, len = accepted.length; i < len; ++i) {360 for (var j = 0, jlen = types.length; j < jlen; ++j) {361 if (accept(types[j].split('/'), accepted[i])) {
3 unmodified lines
365 }366 }367 }368369 // default to the first370 if (!accepted.length) {371 key = keys[0];372 type = types[0];373 }
289 unmodified lines