Module: kamailio
Branch: 5.0
Commit: 76176130ee60ee819cd7850b7a7e433dc5c4f8cc
URL:
https://github.com/kamailio/kamailio/commit/76176130ee60ee819cd7850b7a7e433…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-03-16T11:01:17+01:00
xhttp: use stateless reply for sending http response
(cherry picked from commit a97701575863993f8a19f9dd611156b37ffca247)
---
Modified: src/modules/xhttp/xhttp_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/76176130ee60ee819cd7850b7a7e433…
Patch:
https://github.com/kamailio/kamailio/commit/76176130ee60ee819cd7850b7a7e433…
---
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;