1 Commits
Author SHA1 Message Date
ys-ll 3357c14e91 fix: support zero-byte uploads in FilePut
Reading the body into a zero-length buffer returned io.EOF on an
already-exhausted reader, so empty files and directory markers always
failed. Use io.ReadFull and send an explicit Content-Length: 0 for
empty bodies instead of falling back to chunked encoding. Also fix an
error variable mix-up in the NewRequest error check.
2026-09-30 16:18:31 +08:00