Module: kamailio Branch: master Commit: f90a5525244f3b37697c8426613c9b88eb98fb9d URL: https://github.com/kamailio/kamailio/commit/f90a5525244f3b37697c8426613c9b88...
Author: Olle E. Johansson oej@edvina.net Committer: Olle E. Johansson oej@edvina.net Date: 2016-03-28T20:22:23+02:00
http_client Return CURL error code on CURL failures, like "can't resolve DNS"
---
Modified: modules/http_client/functions.c
---
Diff: https://github.com/kamailio/kamailio/commit/f90a5525244f3b37697c8426613c9b88... Patch: https://github.com/kamailio/kamailio/commit/f90a5525244f3b37697c8426613c9b88...
---
diff --git a/modules/http_client/functions.c b/modules/http_client/functions.c index 493c503..3d1b576 100644 --- a/modules/http_client/functions.c +++ b/modules/http_client/functions.c @@ -258,7 +258,7 @@ static int curL_query_url(struct sip_msg* _m, const char* _url, str* _dst, const pkg_free(stream.buf); } counter_inc(connfail); - return -1; + return res; }
/* HTTP_CODE CHANGED TO CURLINFO_RESPONSE_CODE in curl > 7.10.7 */