Comparing version 0.5.0 to 0.5.2
@@ -215,8 +215,12 @@ const debug = require('debug') ('sipware:headers') | ||
if(via && via[0]) { | ||
var users = via[0].split(';') [1] | ||
var idx = via[0].indexOf(';'); | ||
if(users) { | ||
users = users.trim(); | ||
if(idx > 0) { | ||
var [session, users] = [via[0].slice(0, idx), via[0].slice(idx + 1)]; | ||
if(users !== '*') return users; | ||
if(users && users.length) { | ||
users = users.trim(); | ||
if(users !== '*') return users; | ||
} | ||
} | ||
@@ -223,0 +227,0 @@ } |
@@ -67,3 +67,3 @@ { | ||
"optionalDependencies": {}, | ||
"version": "0.5.0", | ||
"version": "0.5.2", | ||
"directories": { | ||
@@ -70,0 +70,0 @@ "lib": "lib" |
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
125295
3049