Module: kamailio
Branch: 5.2
Commit: 81f328095f6c06b5ca7cb18b6cdcfad430fb7359
URL:
https://github.com/kamailio/kamailio/commit/81f328095f6c06b5ca7cb18b6cdcfad…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-12-04T09:06:49+01:00
core: parse body - debug instead of error log message when mime mismatch
- GH #1746
(cherry picked from commit 08820db104c7dbfce36af0f59dfcc28f97cffbd0)
---
Modified: src/core/parser/parse_body.c
---
Diff:
https://github.com/kamailio/kamailio/commit/81f328095f6c06b5ca7cb18b6cdcfad…
Patch:
https://github.com/kamailio/kamailio/commit/81f328095f6c06b5ca7cb18b6cdcfad…
---
diff --git a/src/core/parser/parse_body.c b/src/core/parser/parse_body.c
index 05425b50ce..9794e43fb1 100644
--- a/src/core/parser/parse_body.c
+++ b/src/core/parser/parse_body.c
@@ -504,7 +504,11 @@ int part_multipart_headers_cmp (char *buffer,
}
if (error < 0) {
- LM_ERR("part_multipart_headers_cmp. error. \"%i\".
\"%s\".\n", error, error_msg);
+ if(error == -2) {
+ LM_DBG("result code: \"%i\" text: \"%s\".\n", error,
error_msg);
+ } else {
+ LM_ERR("error code: \"%i\" error text: \"%s\".\n",
error, error_msg);
+ }
return 0;
} else {
return found;