0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-05-02 16:52:10 +00:00

fix multipart bug with empty payload

This commit is contained in:
ad hoc
2024-10-02 23:07:42 +02:00
parent 77151c20be
commit 96d4d8dc45

@ -310,7 +310,9 @@ impl<IO: Io> S3Backend<IO> {
let mut current_chunk_len = 0;
tokio::pin!(data);
loop {
let Some(frame) = poll_fn(|cx| data.as_mut().poll_frame(cx)).await else {
let next_frame_fut = poll_fn(|cx| data.as_mut().poll_frame(cx));
let Some(frame) = next_frame_fut.await else {
let _ = s_chunks.send(current_chunk_file).await;
break;
};
let frame = frame?;