Skip to content

Commit

Permalink
Prevent outgoing CANCEL messages from being authenticated
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillan committed Nov 24, 2012
1 parent 5ed6122 commit f05795b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RequestSender.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit f05795b

Please sign in to comment.