Module: kamailio
Branch: master
Commit: 65a777f3316fb3a3adfa61739a091bb9d61582a8
URL:
https://github.com/kamailio/kamailio/commit/65a777f3316fb3a3adfa61739a091bb…
Author: Vasiliy Ganchev <vance(a)ukr.net>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-11-25T08:16:55+01:00
http_client: add missed useragent parameter
While preparing query_params, "useragent" was missed - add it.
---
Modified: src/modules/http_client/functions.c
---
Diff:
https://github.com/kamailio/kamailio/commit/65a777f3316fb3a3adfa61739a091bb…
Patch:
https://github.com/kamailio/kamailio/commit/65a777f3316fb3a3adfa61739a091bb…
---
diff --git a/src/modules/http_client/functions.c b/src/modules/http_client/functions.c
index d19910f90f..3dfe21a8a9 100644
--- a/src/modules/http_client/functions.c
+++ b/src/modules/http_client/functions.c
@@ -552,6 +552,7 @@ int curl_con_query_url_f(struct sip_msg* _m, const str *connection,
query_params.cacert = default_tls_cacert;
query_params.ciphersuites = conn->ciphersuites;
query_params.tlsversion = conn->tlsversion;
+ query_params.useragent = conn->useragent;
query_params.verify_peer = conn->verify_peer;
query_params.verify_host = conn->verify_host;
query_params.timeout = conn->timeout;