diff --git a/crates/tauri/src/protocol/asset.rs b/crates/tauri/src/protocol/asset.rs index e7c7133248b1..78ff0e38a44a 100644 --- a/crates/tauri/src/protocol/asset.rs +++ b/crates/tauri/src/protocol/asset.rs @@ -190,7 +190,7 @@ fn get_response( // multi-part range header let mut buf = Vec::new(); - for (end, start) in ranges { + for (start, end) in ranges { // a new range is being written, write the range boundary buf.write_all(boundary_sep.as_bytes()).await?; diff --git a/examples/streaming/main.rs b/examples/streaming/main.rs index b2f7f1ef15ae..608df9270640 100644 --- a/examples/streaming/main.rs +++ b/examples/streaming/main.rs @@ -116,7 +116,7 @@ fn get_stream_response( format!("multipart/byteranges; boundary={boundary}"), ); - for (end, start) in ranges { + for (start, end) in ranges { // a new range is being written, write the range boundary buf.write_all(boundary_sep.as_bytes())?;