Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tomerm-iguazio committed Mar 28, 2024
1 parent 6bd860e commit 0df69af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v3io/dataplane/transport/httpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def _send_request_on_connection(self, request, connection):
"Tx", connection=connection, method=request.method, path=path, headers=request.headers, body=request.body
)
starting_offset = 0
if request.body is not None and hasattr(request.body, "seek") and hasattr(request.body, "tell"):
if request.body and hasattr(request.body, "seek") and hasattr(request.body, "tell"):
starting_offset = request.body.tell()
try:
try:
Expand Down

0 comments on commit 0df69af

Please sign in to comment.