<p>When I use get_body_part on a multipart body, it doesn't detect properly the ending of multipart headers:</p>

<p>For instance in:</p>

<pre><code>--vvemeemm0wqr7ayc5h367f3v8e66mc9t
Content-Type: application/sdp
Content-Length: 479

v=0
o=- 3669362310 3669362310 IN IP4 192.168.2.4
[...]
</code></pre>

<p>"Content-Length: 479" is taken into get_body_part("application/sdp", "$var(sdp)");</p>

<p>I will try to provide more details later.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/564">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZcV3lNWRIwsy4CZRmB-LQ8HX_cMHks5p2i6YgaJpZM4IESnF.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/564"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>