File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -962,15 +962,15 @@ static void cb_splunk_flush(struct flb_event_chunk *event_chunk,
962
962
if (ctx -> http_user && ctx -> http_passwd ) {
963
963
flb_http_basic_auth (c , ctx -> http_user , ctx -> http_passwd );
964
964
}
965
+ else if (ctx -> auth_header ) {
966
+ flb_http_add_header (c , "Authorization" , 13 ,
967
+ ctx -> auth_header , flb_sds_len (ctx -> auth_header ));
968
+ }
965
969
else if (metadata_auth_header ) {
966
970
flb_http_add_header (c , "Authorization" , 13 ,
967
971
metadata_auth_header ,
968
972
flb_sds_len (metadata_auth_header ));
969
973
}
970
- else if (ctx -> auth_header ) {
971
- flb_http_add_header (c , "Authorization" , 13 ,
972
- ctx -> auth_header , flb_sds_len (ctx -> auth_header ));
973
- }
974
974
975
975
/* Append Channel identifier header */
976
976
if (ctx -> channel ) {
You can’t perform that action at this time.
0 commit comments