Skip to content

Commit

Permalink
fix: Fix fetch method for multipart request (box/box-codegen#545) (#266)
Browse files Browse the repository at this point in the history
Co-authored-by: box-sdk-build <[email protected]>
  • Loading branch information
box-sdk-build and box-sdk-build authored Aug 12, 2024
1 parent b5bce24 commit 08a0818
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "d1cb68d", "specHash": "9919482", "version": "1.2.0" }
{ "engineHash": "ab2fc63", "specHash": "9919482", "version": "1.2.0" }
2 changes: 2 additions & 0 deletions box_sdk_gen/networking/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ def fetch(url: str, options: FetchOptions) -> FetchResponse:
)
)

if options.file_stream and options.file_stream.seekable():
options.file_stream.seek(0)
attempt_nr += 1

__raise_on_unsuccessful_request(request=request, response=response)
Expand Down

0 comments on commit 08a0818

Please sign in to comment.