Skip to content

Commit

Permalink
Send files the same way for file handles and paths so retries can res…
Browse files Browse the repository at this point in the history
…et the seek values properly on retries
  • Loading branch information
cccs-sgaron committed Jul 5, 2024
1 parent 35708e1 commit 10ac697
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assemblyline_client/v4_client/module/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __call__(self, fh=None, path=None, content=None, url=None, sha256=None, fnam
else:
raise ClientError('Could not guess the file name, please provide an fname parameter', 400)
fh.seek(0)
files = {'bin': (fname, fh)}
files = {'bin': fh}
request = {
'name': fname,
}
Expand Down
2 changes: 1 addition & 1 deletion assemblyline_client/v4_client/module/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __call__(self, fh=None, path=None, content=None, url=None, sha256=None, fnam
else:
raise ClientError('Could not guess the file name, please provide an fname parameter', 400)
fh.seek(0)
files = {'bin': (fname, fh)}
files = {'bin': fh}
request = {
'name': fname,
}
Expand Down

0 comments on commit 10ac697

Please sign in to comment.