Module: kamailio
Branch: master
Commit: c71db9dfd384c4c6dabcee70168627c782144b6e
URL: 
https://github.com/kamailio/kamailio/commit/c71db9dfd384c4c6dabcee70168627c782144b6e

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-07-08T16:18:01+02:00

xhttp: set LUMP_RPL_NODUP for adding content type to reply

---

Modified: src/modules/xhttp/xhttp_mod.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/c71db9dfd384c4c6dabcee70168627c782144b6e.diff
Patch: 
https://github.com/kamailio/kamailio/commit/c71db9dfd384c4c6dabcee70168627c782144b6e.patch

---

diff --git a/src/modules/xhttp/xhttp_mod.c b/src/modules/xhttp/xhttp_mod.c
index bdc8f27018b..7300d2674d6 100644
--- a/src/modules/xhttp/xhttp_mod.c
+++ b/src/modules/xhttp/xhttp_mod.c
@@ -409,7 +409,8 @@ static int xhttp_send_reply(
                memcpy(tbuf.s + sizeof("Content-Type: ") - 1, ctype->s, 
ctype->len);
                memcpy(tbuf.s + sizeof("Content-Type: ") - 1 + ctype->len, CRLF,
                                CRLF_LEN);
-               if(add_lump_rpl(msg, tbuf.s, tbuf.len, LUMP_RPL_HDR) == 0) {
+               if(add_lump_rpl(msg, tbuf.s, tbuf.len, LUMP_RPL_HDR | 
LUMP_RPL_NODUP)
+                               == 0) {
                        LM_ERR("failed to insert content-type lump\n");
                        pkg_free(tbuf.s);
                        return -1;

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to