aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/protocols')
-rw-r--r--src/lib/protocols/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c
index 70750fbe0..3cfc0a394 100644
--- a/src/lib/protocols/http.c
+++ b/src/lib/protocols/http.c
@@ -825,8 +825,8 @@ static void ndpi_check_http_tcp(struct ndpi_detection_module_struct *ndpi_struct
);
#endif
- if(strnstr((const char *)packet->content_line.ptr, "text/", packet->content_line.len)
- || strnstr((const char *)packet->content_line.ptr, "/json", packet->content_line.len)
+ if(ndpi_strnstr((const char *)packet->content_line.ptr, "text/", packet->content_line.len)
+ || ndpi_strnstr((const char *)packet->content_line.ptr, "/json", packet->content_line.len)
) {
/* This is supposed to be a hunan-readeable text file */