Skip to content

Commit

Permalink
Change to meet coding style rule.
Browse files Browse the repository at this point in the history
Signed-off-by: metalfork <[email protected]>
  • Loading branch information
metalfork committed Aug 13, 2024
1 parent 8b0df78 commit c95851a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/in_http/http_prot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c95851a

Please sign in to comment.