Skip to content

Commit

Permalink
Encode risklist data before sending
Browse files Browse the repository at this point in the history
Send data in UTF-8 encoding as risklist data can often contain non-latin characters
  • Loading branch information
mvo-rf authored Mar 18, 2024
1 parent c080891 commit 1d1eb31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/scripts/rfslpublish.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}')
Expand Down

0 comments on commit 1d1eb31

Please sign in to comment.