@@ -146,7 +146,7 @@ module.exports = {
146146 } ,
147147
148148 /**
149- * Set pathname, retaining the query- string when present.
149+ * Set pathname, retaining the query string when present.
150150 *
151151 * @param {String } path
152152 * @api public
@@ -163,7 +163,7 @@ module.exports = {
163163 } ,
164164
165165 /**
166- * Get parsed query- string.
166+ * Get parsed query string.
167167 *
168168 * @return {Object }
169169 * @api public
@@ -176,7 +176,7 @@ module.exports = {
176176 } ,
177177
178178 /**
179- * Set query- string as an object.
179+ * Set query string as an object.
180180 *
181181 * @param {Object } obj
182182 * @api public
@@ -199,7 +199,7 @@ module.exports = {
199199 } ,
200200
201201 /**
202- * Set querystring .
202+ * Set query string .
203203 *
204204 * @param {String } str
205205 * @api public
@@ -216,7 +216,7 @@ module.exports = {
216216 } ,
217217
218218 /**
219- * Get the search string. Same as the querystring
219+ * Get the search string. Same as the query string
220220 * except it includes the leading ?.
221221 *
222222 * @return {String }
@@ -406,7 +406,7 @@ module.exports = {
406406 } ,
407407
408408 /**
409- * Short-hand for:
409+ * Shorthand for:
410410 *
411411 * this.protocol == 'https'
412412 *
@@ -422,7 +422,7 @@ module.exports = {
422422 * When `app.proxy` is `true`, parse
423423 * the "X-Forwarded-For" ip address list.
424424 *
425- * For example if the value were "client, proxy1, proxy2"
425+ * For example if the value was "client, proxy1, proxy2"
426426 * you would receive the array `["client", "proxy1", "proxy2"]`
427427 * where "proxy2" is the furthest down-stream.
428428 *
@@ -495,6 +495,7 @@ module.exports = {
495495 * @return {Object }
496496 * @api private
497497 */
498+
498499 get accept ( ) {
499500 return this . _accept || ( this . _accept = accepts ( this . req ) ) ;
500501 } ,
@@ -505,6 +506,7 @@ module.exports = {
505506 * @param {Object }
506507 * @api private
507508 */
509+
508510 set accept ( obj ) {
509511 this . _accept = obj ;
510512 } ,
@@ -607,7 +609,7 @@ module.exports = {
607609
608610 /**
609611 * Check if the incoming request contains the "Content-Type"
610- * header field, and it contains any of the give mime `type`s.
612+ * header field and if it contains any of the given mime `type`s.
611613 * If there is no request body, `null` is returned.
612614 * If there is no content type, `false` is returned.
613615 * Otherwise, it returns the first `type` that matches.
0 commit comments