Skip to content

Commit

Permalink
fixed sip.js handling of incoming renderbodies to support handling=op…
Browse files Browse the repository at this point in the history
…tional
  • Loading branch information
James Criscuolo committed Mar 12, 2014
1 parent 38a0680 commit 9b91437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Session.js
Expand Up @@ -956,7 +956,7 @@ InviteServerContext = function(ua, request) {
contentDisp = request.getHeader('Content-Disposition');

// Check body and content type
if ((!contentDisp && contentType !== 'application/sdp') || contentDisp === 'render') {
if ((!contentDisp && contentType !== 'application/sdp') || (contentDisp && contentDisp.indexOf('render') >= 0)) {
this.renderbody = request.body;
this.rendertype = contentType;
} else if (contentType !== 'application/sdp' && (contentDisp && contentDisp === 'session')) {
Expand Down

0 comments on commit 9b91437

Please sign in to comment.