Module: kamailio
Branch: master
Commit: a97701575863993f8a19f9dd611156b37ffca247
URL:
https://github.com/kamailio/kamailio/commit/a97701575863993f8a19f9dd611156b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-03-16T10:58:14+01:00
xhttp: use stateless reply for sending http response
---
Modified: src/modules/xhttp/xhttp_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a97701575863993f8a19f9dd611156b…
Patch:
https://github.com/kamailio/kamailio/commit/a97701575863993f8a19f9dd611156b…
---
diff --git a/src/modules/xhttp/xhttp_mod.c b/src/modules/xhttp/xhttp_mod.c
index 2443de1..05b45c3 100644
--- a/src/modules/xhttp/xhttp_mod.c
+++ b/src/modules/xhttp/xhttp_mod.c
@@ -412,7 +412,7 @@ static int xhttp_send_reply(sip_msg_t *msg, int code, str *reason,
LM_DBG("response with body: %.*s\n", body->len, body->s);
}
LM_DBG("sending out response: %d %.*s\n", code, reason->len,
reason->s);
- if (slb.freply(msg, code, reason) < 0)
+ if (slb.sreply(msg, code, reason) < 0)
{
LM_ERR("Error while sending reply\n");
return -1;