Commit 16bc458
committed
fix(storage): send Content-Length on empty GCS multipart part
A zero-length *bytes.Reader is "unknown length" to net/http and is sent
chunked, which S3-compatible XML backends reject with 411. Pass no body
for empty parts so Content-Length: 0 is sent instead.1 parent 5105c2e commit 16bc458
1 file changed
Lines changed: 9 additions & 2 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
306 | 314 | | |
307 | 315 | | |
308 | 316 | | |
309 | 317 | | |
310 | 318 | | |
311 | | - | |
312 | 319 | | |
313 | 320 | | |
314 | 321 | | |
| |||
0 commit comments