OpenSIP 4.1
As per the discussion in #3900 has_body_part matching is subtly flawed. It only matches designated MIME types and returns true for everything else.
It should fall back to pure complete string matching when [SUB]TYPE_UNKNOWN is detected.
As an example
Content-Type = "application/bar"
has_body_part("application/foo") should equal false
has_body_part("application/barber") should equal false
has_body_part("application/bar") should equal true
OpenSIP 4.1
As per the discussion in #3900 has_body_part matching is subtly flawed. It only matches designated MIME types and returns true for everything else.
It should fall back to pure complete string matching when [SUB]TYPE_UNKNOWN is detected.
As an example
Content-Type = "application/bar"
has_body_part("application/foo") should equal false
has_body_part("application/barber") should equal false
has_body_part("application/bar") should equal true