Skip to content

Commit 12a9de5

Browse files
cosmo0920edsiper
authored andcommitted
in_splunk: Downgrade from error response to debug message when Content-Type is not set
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent c0d9184 commit 12a9de5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/in_splunk/splunk_prot.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,7 @@ static int process_hec_payload(struct flb_splunk *ctx, struct splunk_conn *conn,
575575

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

582581
if (header->val.len == 16 &&

0 commit comments

Comments
 (0)