From 1d1eb3103e1093a8559f5ee94b583e42b9ef371e Mon Sep 17 00:00:00 2001 From: mvo-rf <110616258+mvo-rf@users.noreply.github.com> Date: Mon, 18 Mar 2024 16:11:37 -0400 Subject: [PATCH] Encode risklist data before sending Send data in UTF-8 encoding as risklist data can often contain non-latin characters --- bin/scripts/rfslpublish.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/scripts/rfslpublish.py b/bin/scripts/rfslpublish.py index a4e6e62..2af3e18 100644 --- a/bin/scripts/rfslpublish.py +++ b/bin/scripts/rfslpublish.py @@ -175,7 +175,7 @@ def sumologic_publish(): if ARGS.verbose > 4: print(f'Publishing: {category}') postresponse = session.post(CFGDICT['source-url'], \ - rf_map_payload, headers=headers).status_code + rf_map_payload.encode('utf-8'), headers=headers).status_code if ARGS.verbose > 8: print(f'Web_Status: {postresponse}')