[OpenSIPS-Devel] [OpenSIPS/opensips] aa81c6: rest_client: Fix a rest_post() regression bug

Liviu Chircu liviu at opensips.org
Fri Jan 5 11:02:34 EST 2018


  Branch: refs/heads/2.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: aa81c6721f02bbc2173c1b34d1b71136970147e8
      https://github.com/OpenSIPS/opensips/commit/aa81c6721f02bbc2173c1b34d1b71136970147e8
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-01-05 (Fri, 05 Jan 2018)

  Changed paths:
    M modules/rest_client/rest_methods.c

  Log Message:
  -----------
  rest_client: Fix a rest_post() regression bug

Commit c549e6ec added an unnecessary libcurl option which caused
the HTTP headers to be logged into the output body pseudo-variable
alongside the request body when performing a rest_post().

This patch disables the above-mentioned libcurl option (CURLOPT_HEADER).

Reported by @goharahmed on GitHub.
Fixes #1247.

(cherry picked from commit 91d7e7f4bc44857b6649dcbfd48b0ad9decf902c)




More information about the Devel mailing list