<p>I pushed a commit with a different implementation, controlled by a module parameter http_response_trim -- you have to set it to 1 to eneable the feature.</p>

<p>It removes all the white spaces from the beginning and end of the response, because I added another feature that allows to return the full http response instead of only first line.</p>

<p>Testing and feedback will be appreciated, for now I close this item.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/321#issuecomment-141366239">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZdbnLByS8DGyu3z75rUIiWsGOF-Aks5oy7CXgaJpZM4F6Fzx.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/pull/321#issuecomment-141366239"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>