http_query Remove leading empty lines in http response, in order to return the first non-empty one. You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/319
-- Commit Summary --
* Update functions.c
-- File Changes --
M modules/utils/functions.c (7)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/319.patch https://github.com/kamailio/kamailio/pull/319.diff
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/319
stream.buf is dynamic allocated memory and by changing its value it will crash when freeing it, because it is no longer pointing to the start of allocated memory. If you want to strip empty chars at beginning, then do it without changing the initial value of stream.buf -- e.g., use another variable to copy the value for stream.buf and use that var for moving forward to first non-empty-char.
Also, format the commit message as per guidelines at:
* http://www.kamailio.org/wiki/devel/github-contributions
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/319#issuecomment-138806121
Thanks for your quick review. Sorry about that. As you can see, I have no C++ knowledge, and I'm not used to Github processes and procedures. I'll try it once again.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/319#issuecomment-138809534
Closed #319.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/319#event-404489737