@hapi/call
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -88,5 +88,5 @@ 'use strict'; | ||
const segments = path.split('/').slice(1); | ||
const segments = path.length === 1 ? [''] : path.split('/').slice(1); | ||
const vhost = (this.vhosts && hostname && this.vhosts[hostname]); | ||
const vhost = this.vhosts && hostname && this.vhosts[hostname]; | ||
const route = (vhost && this._lookup(path, segments, vhost, method)) || | ||
@@ -93,0 +93,0 @@ this._lookup(path, segments, this.routes, method) || |
{ | ||
"name": "@hapi/call", | ||
"description": "HTTP Router", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"repository": "git://github.com/hapijs/call", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22729