Skip to content

Commit

Permalink
fix: Removed usedforsecurity=False as it is not backward compitable
Browse files Browse the repository at this point in the history
  • Loading branch information
sethk4783 committed Sep 16, 2024
1 parent bed3a32 commit fb4753c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion filestack/uploads/intelligent_ingestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def upload_part(apikey, filename, filepath, filesize, storage, start_response, p
payload = payload_base.copy()
payload.update({
'size': len(chunk_data),
'md5': b64encode(hashlib.md5(chunk_data, usedforsecurity=False).digest()).strip().decode('utf-8'),
'md5': b64encode(hashlib.md5(chunk_data).digest()).strip().decode('utf-8'),
'offset': offset,
'fii': True
})
Expand Down
2 changes: 1 addition & 1 deletion filestack/uploads/multipart.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def upload_chunk(apikey, filename, storage, start_response, chunk):
'apikey': apikey,
'part': chunk.num,
'size': len(chunk.bytes),
'md5': b64encode(hashlib.md5(chunk.bytes, usedforsecurity=False).digest()).strip().decode('utf-8'),
'md5': b64encode(hashlib.md5(chunk.bytes).digest()).strip().decode('utf-8'),
'uri': start_response['uri'],
'region': start_response['region'],
'upload_id': start_response['upload_id'],
Expand Down

0 comments on commit fb4753c

Please sign in to comment.