diff --git a/Phone/phone.js b/Phone/phone.js index 4aa2ae7f..5fcbce7c 100644 --- a/Phone/phone.js +++ b/Phone/phone.js @@ -4788,7 +4788,7 @@ function ReceiveNotify(notification, selfSubscribe) { var Presence = "Unknown"; var ContentType = ""; - if(notification.request.headers.length > 0 && notification.request.headers["Content-Type"] && notification.request.headers["Content-Type"][0]){ + if(Object.keys(notification.request.headers).length > 0 && notification.request.headers["Content-Type"] && notification.request.headers["Content-Type"][0]){ ContentType = notification.request.headers["Content-Type"][0].parsed; } if (ContentType == "application/pidf+xml") {