Module: kamailio
Branch: 5.4
Commit: 9979ae4889ccb2c18b3f10f45625679bb8c2c4b2
URL:
https://github.com/kamailio/kamailio/commit/9979ae4889ccb2c18b3f10f45625679…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-07-29T10:47:51+02:00
xhttp: warning log if tcp_accept_no_cl is not set
(cherry picked from commit b8fbf5e8c199b8277053f9c15231695a16058d6e)
(cherry picked from commit cf6c70f00fda196ac9eba4a2ccd24b382d41b240)
---
Modified: src/modules/xhttp/xhttp_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/9979ae4889ccb2c18b3f10f45625679…
Patch:
https://github.com/kamailio/kamailio/commit/9979ae4889ccb2c18b3f10f45625679…
---
diff --git a/src/modules/xhttp/xhttp_mod.c b/src/modules/xhttp/xhttp_mod.c
index ba57066849..440577bde2 100644
--- a/src/modules/xhttp/xhttp_mod.c
+++ b/src/modules/xhttp/xhttp_mod.c
@@ -41,6 +41,7 @@
#include "../../core/sip_msg_clone.h"
#include "../../core/mod_fix.h"
#include "../../core/pvar.h"
+#include "../../core/tcp_options.h"
#include "../../core/kemi.h"
#include "api.h"
@@ -142,6 +143,11 @@ static int mod_init(void)
xhttp_route_no = route_no;
}
+ if(cfg_get(tcp, tcp_cfg, accept_no_cl)==0) {
+ LM_WARN("tcp_accept_no_cl not set - usually required"
+ " to handle HTTP requests with no Content-Lenght\n");
+ }
+
/* bind the SL API */
if(sl_load_api(&slb) != 0) {
LM_ERR("cannot bind to SL API\n");