Skip to content

Commit

Permalink
update python samples
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Jun 20, 2024
1 parent 4bbadec commit 7b99679
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ async def request(
data.add_field(k, v)
args["data"] = data

# Pass a `bytes` parameter directly in the body to support
# Pass a `bytes` or `str` parameter directly in the body to support
# other content types than Json when `body` argument is provided
# in serialized form
elif isinstance(body, bytes):
elif isinstance(body, str) or isinstance(body, bytes):
args["data"] = body
else:
# Cannot generate the request from given parameters
Expand Down

0 comments on commit 7b99679

Please sign in to comment.