Skip to content

Commit d299e6f

Browse files
authored
Do not recommend the deprecated data= kwarg for passing bytes. (#2044)
(`data=` is meant for sending form data.)
1 parent 321d4aa commit d299e6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/async.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ When sending a streaming request body with an `AsyncClient` instance, you should
109109
async def upload_bytes():
110110
... # yield byte content
111111

112-
await client.post(url, data=upload_bytes())
112+
await client.post(url, content=upload_bytes())
113113
```
114114

115115
### Explicit transport instances

0 commit comments

Comments
 (0)