mirror of
https://github.com/jambonz/sbc-inbound.git
synced 2026-11-09 04:48:46 +00:00
if else made authorization check unreachable (#90)
This commit is contained in:
1 parent
31b4534878
commit
01cde07117
1 file changed
+1
-1
+1
-1
@@ -223,7 +223,7 @@ class CallSession extends Emitter {
|
||||
if (this.req.locals.application_sid) {
|
||||
Object.assign(headers, {'X-Application-Sid': this.req.locals.application_sid});
|
||||
}
|
||||
else if (this.req.authorization) {
|
||||
if (this.req.authorization) {
|
||||
if (this.req.authorization.grant && this.req.authorization.grant.application_sid) {
|
||||
Object.assign(headers, {'X-Application-Sid': this.req.authorization.grant.application_sid});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user