Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ defineGetter(req, 'secure', function secure(){
/**
* Return the remote address from the trusted proxy.
*
* The is the remote address on the socket unless
* This is the remote address on the socket unless
* "trust proxy" is set.
*
* @return {String}
Expand Down
7 changes: 4 additions & 3 deletions lib/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ res.download = function download (path, filename, options, callback) {
opts = null
}

// support optional filename, where options may be in it's place
// support optional filename, where options may be in its place
if (typeof filename === 'object' &&
(typeof options === 'function' || options === undefined)) {
name = null
Expand Down Expand Up @@ -517,8 +517,9 @@ res.type = function contentType(type) {
* Respond to the Acceptable formats using an `obj`
* of mime-type callbacks.
*
* This method uses `req.accepted`, an array of
* acceptable types ordered by their quality values.
* This method uses `req.accepts()`, which returns the
* best match from the acceptable types ordered by
* their quality values.
* When "Accept" is not present the _first_ callback
* is invoked, otherwise the first match is used. When
* no match is performed the server responds with
Expand Down
Loading