From d299e6ff599f050bb4805779bcc2b9653bd3ca4f Mon Sep 17 00:00:00 2001 From: Vytautas Liuolia Date: Sun, 23 Jan 2022 21:37:27 +0100 Subject: [PATCH] Do not recommend the deprecated `data=` kwarg for passing bytes. (#2044) (`data=` is meant for sending form data.) --- docs/async.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/async.md b/docs/async.md index 09d2940b..8782cdea 100644 --- a/docs/async.md +++ b/docs/async.md @@ -109,7 +109,7 @@ When sending a streaming request body with an `AsyncClient` instance, you should async def upload_bytes(): ... # yield byte content -await client.post(url, data=upload_bytes()) +await client.post(url, content=upload_bytes()) ``` ### Explicit transport instances -- 2.47.3