@@ -146,7 +146,7 @@ module.exports = {
146
146
} ,
147
147
148
148
/**
149
- * Set pathname, retaining the query- string when present.
149
+ * Set pathname, retaining the query string when present.
150
150
*
151
151
* @param {String } path
152
152
* @api public
@@ -163,7 +163,7 @@ module.exports = {
163
163
} ,
164
164
165
165
/**
166
- * Get parsed query- string.
166
+ * Get parsed query string.
167
167
*
168
168
* @return {Object }
169
169
* @api public
@@ -176,7 +176,7 @@ module.exports = {
176
176
} ,
177
177
178
178
/**
179
- * Set query- string as an object.
179
+ * Set query string as an object.
180
180
*
181
181
* @param {Object } obj
182
182
* @api public
@@ -199,7 +199,7 @@ module.exports = {
199
199
} ,
200
200
201
201
/**
202
- * Set querystring .
202
+ * Set query string .
203
203
*
204
204
* @param {String } str
205
205
* @api public
@@ -216,7 +216,7 @@ module.exports = {
216
216
} ,
217
217
218
218
/**
219
- * Get the search string. Same as the querystring
219
+ * Get the search string. Same as the query string
220
220
* except it includes the leading ?.
221
221
*
222
222
* @return {String }
@@ -406,7 +406,7 @@ module.exports = {
406
406
} ,
407
407
408
408
/**
409
- * Short-hand for:
409
+ * Shorthand for:
410
410
*
411
411
* this.protocol == 'https'
412
412
*
@@ -422,7 +422,7 @@ module.exports = {
422
422
* When `app.proxy` is `true`, parse
423
423
* the "X-Forwarded-For" ip address list.
424
424
*
425
- * For example if the value were "client, proxy1, proxy2"
425
+ * For example if the value was "client, proxy1, proxy2"
426
426
* you would receive the array `["client", "proxy1", "proxy2"]`
427
427
* where "proxy2" is the furthest down-stream.
428
428
*
@@ -495,6 +495,7 @@ module.exports = {
495
495
* @return {Object }
496
496
* @api private
497
497
*/
498
+
498
499
get accept ( ) {
499
500
return this . _accept || ( this . _accept = accepts ( this . req ) ) ;
500
501
} ,
@@ -505,6 +506,7 @@ module.exports = {
505
506
* @param {Object }
506
507
* @api private
507
508
*/
509
+
508
510
set accept ( obj ) {
509
511
this . _accept = obj ;
510
512
} ,
@@ -607,7 +609,7 @@ module.exports = {
607
609
608
610
/**
609
611
* 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.
611
613
* If there is no request body, `null` is returned.
612
614
* If there is no content type, `false` is returned.
613
615
* Otherwise, it returns the first `type` that matches.
0 commit comments