Commit 9e13be8
authored
fix(api): support multipart range blob pulls (#3995)
* fix(api): support multipart range blob pulls
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
* fix(api): tighten multipart range response
- Drop the redundant deferred closeRangeReaders; the deferred cleanup
registered when the slice is created already covers all paths.
- Stop copying the request Accept header into each multipart part's
Content-Type. Accept can be a list of media ranges (e.g.
"application/octet-stream,*/*"), which is not a valid Content-Type and
may confuse multipart parsers. RFC 9110 lets us omit it entirely.
- Set Docker-Content-Digest on the partial-content response so range
pulls expose the same header as a full GET.
- Drop the over-broad build tag on routes_internal_test.go; the parser
unit test does not need any extension build tags.
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
---------
Signed-off-by: Akash Kumar <meakash7902@gmail.com>1 parent 113c481 commit 9e13be8
3 files changed
Lines changed: 379 additions & 74 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
11285 | 11287 | | |
11286 | 11288 | | |
11287 | 11289 | | |
| 11290 | + | |
| 11291 | + | |
| 11292 | + | |
| 11293 | + | |
| 11294 | + | |
| 11295 | + | |
| 11296 | + | |
| 11297 | + | |
| 11298 | + | |
| 11299 | + | |
| 11300 | + | |
| 11301 | + | |
| 11302 | + | |
| 11303 | + | |
| 11304 | + | |
| 11305 | + | |
| 11306 | + | |
| 11307 | + | |
| 11308 | + | |
| 11309 | + | |
| 11310 | + | |
| 11311 | + | |
| 11312 | + | |
| 11313 | + | |
| 11314 | + | |
| 11315 | + | |
| 11316 | + | |
| 11317 | + | |
| 11318 | + | |
| 11319 | + | |
| 11320 | + | |
| 11321 | + | |
| 11322 | + | |
| 11323 | + | |
| 11324 | + | |
| 11325 | + | |
| 11326 | + | |
| 11327 | + | |
| 11328 | + | |
| 11329 | + | |
| 11330 | + | |
| 11331 | + | |
| 11332 | + | |
| 11333 | + | |
| 11334 | + | |
| 11335 | + | |
| 11336 | + | |
| 11337 | + | |
11288 | 11338 | | |
11289 | 11339 | | |
11290 | 11340 | | |
| |||
11353 | 11403 | | |
11354 | 11404 | | |
11355 | 11405 | | |
| 11406 | + | |
| 11407 | + | |
| 11408 | + | |
| 11409 | + | |
| 11410 | + | |
11356 | 11411 | | |
11357 | 11412 | | |
11358 | 11413 | | |
| |||
0 commit comments