Skip to content

Commit

Permalink
Merge pull request #804 from CybercentreCanada/post_data_update
Browse files Browse the repository at this point in the history
Post data update (dev)
  • Loading branch information
cccs-rs authored Mar 7, 2025
2 parents 05e40fa + dc641e7 commit caafcb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assemblyline_v4_service/updater/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ def url_download(source: Dict[str, Any], previous_update: int, logger: Logger, o
if fetch_method == 'get':
response = session.get(uri, auth=auth, headers=headers, proxies=proxies, stream=True)
elif fetch_method == 'post':
json = source.get('post_data') or None
response = session.post(uri, auth=auth, headers=headers, proxies=proxies, json=json, stream=True)
data = source.get('post_data') or None
response = session.post(uri, auth=auth, headers=headers, proxies=proxies, data=data, stream=True)
else:
raise ValueError(f"Unknown fetch method: {fetch_method}")

Expand Down

0 comments on commit caafcb5

Please sign in to comment.