[sr-dev] git:5.0:1ebf0c43: http_async_client: doc review (request body setting)

Giacomo Vacca giacomo.vacca at gmail.com
Wed Apr 26 22:36:48 CEST 2017


Module: kamailio
Branch: 5.0
Commit: 1ebf0c4350cffedc649ae623866d743bad462290
URL: https://github.com/kamailio/kamailio/commit/1ebf0c4350cffedc649ae623866d743bad462290

Author: Giacomo Vacca <giacomo.vacca at gmail.com>
Committer: Giacomo Vacca <giacomo.vacca at gmail.com>
Date: 2017-04-26T22:36:29+02:00

http_async_client: doc review (request body setting)

(cherry picked from commit 83918a1bb6c1f1af5f132c4bfd109c841cb71731)

---

Modified: src/modules/http_async_client/doc/http_async_client_admin.xml

---

Diff:  https://github.com/kamailio/kamailio/commit/1ebf0c4350cffedc649ae623866d743bad462290.diff
Patch: https://github.com/kamailio/kamailio/commit/1ebf0c4350cffedc649ae623866d743bad462290.patch

---

diff --git a/src/modules/http_async_client/doc/http_async_client_admin.xml b/src/modules/http_async_client/doc/http_async_client_admin.xml
index 4656216..8629eda 100644
--- a/src/modules/http_async_client/doc/http_async_client_admin.xml
+++ b/src/modules/http_async_client/doc/http_async_client_admin.xml
@@ -331,7 +331,7 @@ t_newtran();
 http_async_query("http://example.com/test.php?r_uri=$rU&f_uri=$fU", "HTTP_REPLY");
 ...
 # POST
-$var(payload) = "{'r_uri':'$rU', 'f_uri':'$fU'}";
+$http_req(body) = "{'r_uri':'" + $rU + "', 'f_uri':'" + $fU + "'}";
 http_async_query("http://example.com/test.php", "HTTP_REPLY");
 ...
 route[HTTP_REPLY] {




More information about the sr-dev mailing list