change an .is() example

text/* already covers it
This commit is contained in:
TJ Holowaychuk 2013-11-28 12:29:28 -08:00
parent 8717a3ad2b
commit 271d921c41

View file

@ -497,7 +497,7 @@ module.exports = {
* // With Content-Type: text/html; charset=utf-8 * // With Content-Type: text/html; charset=utf-8
* this.is('html'); // => 'html' * this.is('html'); // => 'html'
* this.is('text/html'); // => 'text/html' * this.is('text/html'); // => 'text/html'
* this.is('text/*', 'text/html'); // => 'text/*' * this.is('text/*', 'application/json'); // => 'text/*'
* *
* // When Content-Type is application/json * // When Content-Type is application/json
* this.is('json', 'urlencoded'); // => 'json' * this.is('json', 'urlencoded'); // => 'json'