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

  • other:+1 added−6 removed

1 file+1 added−6 removed

modified:lib/request.js+1 added-6 removed
95 unmodified lines
96 return RegExp.$1 || RegExp.$2;97};9899/**100 * Check if the _Accept_ header is present, and includes the given `type`.100 * Check if the given `type` is acceptable.101 *102 * When the _Accept_ header is not present `true` is returned. Otherwise103 * the given `type` is matched by an exact match, and then subtypes. You104 * may pass the subtype such as "html" which is then converted internally105 * to "text/html" using the mime lookup table.106 *102 * Examples:103 * 104 * // Accept: text/html105 * req.accepts('html');
326 unmodified lines