From c95851a1e6a1d6ef573834ba4cf012ca3bfe36d4 Mon Sep 17 00:00:00 2001 From: metalfork Date: Tue, 13 Aug 2024 16:02:17 -0400 Subject: [PATCH] Change to meet coding style rule. Signed-off-by: metalfork --- plugins/in_http/http_prot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/in_http/http_prot.c b/plugins/in_http/http_prot.c index d964d1c3706..7b43a43833e 100644 --- a/plugins/in_http/http_prot.c +++ b/plugins/in_http/http_prot.c @@ -524,7 +524,8 @@ static int process_payload(struct flb_http *ctx, struct http_conn *conn, } if ((header->val.len == 16 && strncasecmp(header->val.data, "application/json", 16) == 0) || - (header->val.len > 16 && (strncasecmp(header->val.data, "application/json ", 17) == 0) || strncasecmp(header->val.data, "application/json;", 17) == 0)) { + (header->val.len > 16 && (strncasecmp(header->val.data, "application/json ", 17) == 0) || + strncasecmp(header->val.data, "application/json;", 17) == 0)) { type = HTTP_CONTENT_JSON; }