Repository navigation
Commit 46a4340
authored
Release 0.30.0 (#1510)
> [!IMPORTANT]
> Merging this pull request will create this release
## ❗️Breaking ❗
### Switch from `httpx` to `httpx2` in generated clients
[`httpx2`](https://pydantic.dev/docs/httpx2/get-started/) is largely
compatible with `httpx` and should only be a breaking change for users
who customize the internal `Client`.
Thanks to @s-sajid-ali and @johnthagen for making this one happen in PR
#1461 and discussion #1455!
## 🚀 Features
- Update `uv_build` to 0.13 when using `--meta=uv` (#1507)
## 🐛 Fixes
- Let httpx2 choose the multipart/form-data boundary (#1511)
### Let httpx2 choose the boundary for `multipart/form-data` requests
Since 0.29.0, generated endpoints sent every `multipart/form-data` body
with the fixed boundary `+++`, so an uploaded file containing
`\r\n--+++` was cut short at that point (#1509). These bodies no longer
set `Content-Type`, so httpx2 sets it with a random boundary for each
request, as single-body endpoints did before 0.29.0. Endpoints with
several body types still get a boundary (#947).
Co-authored-by: knope-bot[bot] <152252888+knope-bot[bot]@users.noreply.github.com>1 parent ffc5d5a commit 46a4340
4 files changed
Lines changed: 23 additions & 17 deletions
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
16 | 38 | | |
17 | 39 | | |
18 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments