diff --git a/src/modules/xhttp/xhttp_mod.c b/src/modules/xhttp/xhttp_mod.c index ca8ab32f89a..2443de1c4d9 100644 --- a/src/modules/xhttp/xhttp_mod.c +++ b/src/modules/xhttp/xhttp_mod.c @@ -399,6 +399,7 @@ static int xhttp_send_reply(sip_msg_t *msg, int code, str *reason, return -1; } pkg_free(tbuf.s); + LM_DBG("response with content-type: %.*s\n", ctype->len, ctype->s); } if(body!=NULL && body->len>0) @@ -408,7 +409,9 @@ static int xhttp_send_reply(sip_msg_t *msg, int code, str *reason, LM_ERR("Error while adding reply lump\n"); return -1; } + 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) { LM_ERR("Error while sending reply\n");