Skip to content

Commit

Permalink
in_splunk: Downgrade from error response to debug message when Conten…
Browse files Browse the repository at this point in the history
…t-Type is not set

Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 authored and edsiper committed Jul 16, 2024
1 parent c0d9184 commit 12a9de5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/in_splunk/splunk_prot.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,7 @@ static int process_hec_payload(struct flb_splunk *ctx, struct splunk_conn *conn,

header = &session->parser.headers[MK_HEADER_CONTENT_TYPE];
if (header->key.data == NULL) {
send_response(conn, 400, "error: header 'Content-Type' is not set\n");
return -2;
flb_plg_debug(ctx->ins, "header 'Content-Type' is not set");
}

if (header->val.len == 16 &&
Expand Down

0 comments on commit 12a9de5

Please sign in to comment.