From 12a9de521c137e925e39071188041239146804dd Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Tue, 16 Jul 2024 19:53:40 +0900 Subject: [PATCH] in_splunk: Downgrade from error response to debug message when Content-Type is not set Signed-off-by: Hiroshi Hatake --- plugins/in_splunk/splunk_prot.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/in_splunk/splunk_prot.c b/plugins/in_splunk/splunk_prot.c index 286b4e7e478..dd3258468a6 100644 --- a/plugins/in_splunk/splunk_prot.c +++ b/plugins/in_splunk/splunk_prot.c @@ -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 &&