Skip to content
Permalink
Browse files

Prevent outgoing CANCEL messages from being authenticated

  • Loading branch information
jmillan committed Nov 24, 2012
1 parent 5ed6122 commit f05795bf1ec49271f7347b999219c8db11e1f24d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/RequestSender.js
@@ -35,7 +35,7 @@ JsSIP.RequestSender.prototype = {
if (this.credentials) {
if (this.request.method === JsSIP.c.REGISTER) {
this.request.setHeader('authorization', this.credentials.authenticate());
} else {
} else if (this.request.method !== JsSIP.c.CANCEL) {
this.request.setHeader('proxy-authorization', this.credentials.authenticate());
}
}

0 comments on commit f05795b

Please sign in to comment.
You can’t perform that action at this time.