Skip to content
Myr

docs: fix typos and a stale API reference in lib comments (#7512)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by fmtappendf · committed by GitHub · parent 9efc29e · Browse files · 2 files+5 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: fmtappendf <fmtappendf@gmail.com>

Diff stats

2 files+5 added−4 removed

  • other:+5 added−4 removed

2 files+5 added−4 removed

modified:lib/request.js+1 added-1 removed
328 unmodified lines
329330/**331 * Return the remote address from the trusted proxy.332 *333 * The is the remote address on the socket unless333 * This is the remote address on the socket unless334 * "trust proxy" is set.335 *336 * @return {String}337 * @public
190 unmodified lines
modified:lib/response.js+4 added-3 removed
447 unmodified lines
448 done = options449 opts = null450 }451452 // support optional filename, where options may be in it's place452 // support optional filename, where options may be in its place453 if (typeof filename === 'object' &&454 (typeof options === 'function' || options === undefined)) {455 name = null456 opts = filename
59 unmodified lines
516/**517 * Respond to the Acceptable formats using an `obj`518 * of mime-type callbacks.519 *520 * This method uses `req.accepted`, an array of521 * acceptable types ordered by their quality values.520 * This method uses `req.accepts()`, which returns the521 * best match from the acceptable types ordered by522 * their quality values.523 * When "Accept" is not present the _first_ callback524 * is invoked, otherwise the first match is used. When525 * no match is performed the server responds with526 * 406 "Not Acceptable".
524 unmodified lines