Skip to content
Myr

change req.subdomain styling back

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 cd54faa · Browse files · 1 file+4 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+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:lib/request.js+4 added-1 removed
413 unmodified lines
414 */415416req.__defineGetter__('subdomains', function(){417 var offset = this.app.get('subdomain offset');418 return this.get('Host').split('.').reverse().slice(offset);418 return this.get('Host')419 .split('.')420 .reverse()421 .slice(offset);422});423424/**425 * Short-hand for `url.parse(req.url).pathname`.
68 unmodified lines