Browse code

xhttp: use stateless reply for sending http response

Daniel-Constantin Mierla authored on 16/03/2017 09:58:14
Showing 1 changed files
... ...
@@ -412,7 +412,7 @@ static int xhttp_send_reply(sip_msg_t *msg, int code, str *reason,
412 412
 		LM_DBG("response with body: %.*s\n", body->len, body->s);
413 413
 	}
414 414
 	LM_DBG("sending out response: %d %.*s\n", code, reason->len, reason->s);
415
-	if (slb.freply(msg, code, reason) < 0)
415
+	if (slb.sreply(msg, code, reason) < 0)
416 416
 	{
417 417
 		LM_ERR("Error while sending reply\n");
418 418
 		return -1;