Skip to content
Myr

Doc typo

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

  • other:+12 added−12 removed

1 file+12 added−12 removed

modified:lib/express/request.js+12 added-12 removed
197 unmodified lines
198 * header field, and it contains the give mime `type`.199 *200 * Examples:201 *202 * // With Content-Type: text/html; charset=utf-8203 * req.is('html');204 * req.is('text/html');205 * // => true206 *207 * // When Content-Type is application/json208 * req.is('json');209 * req.is('application/json');210 * // => true211 *212 * req.is('html');213 * // => false202 * // With Content-Type: text/html; charset=utf-8203 * req.is('html');204 * req.is('text/html');205 * // => true206 * 207 * // When Content-Type is application/json208 * req.is('json');209 * req.is('application/json');210 * // => true211 * 212 * req.is('html');213 * // => false214 * 215 * Ad-hoc callbacks can also be registered with Express, to perform216 * assertions again the request, for example if we need an expressive217 * way to check if our incoming request is an image, we can register "an image"
54 unmodified lines