Skip to content
Myr

misc refactor

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

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parent fd53197 · Browse files · 1 file+1 added−1 removed
This commit

State

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

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/request.js+1 added-1 removed
349 unmodified lines
350 * @api public351 */352353req.__defineGetter__('ips', function(){354 var trustProxy = this.app.enabled('trust proxy');354 var trustProxy = this.app.get('trust proxy');355 var val = this.get('X-Forwarded-For');356 return trustProxy && val357 ? val.split(/ *, */)358 : [];
67 unmodified lines