From 476e8ee7f3e36732f5018a6771b0e542b7f53332 Mon Sep 17 00:00:00 2001 From: cui Date: Sun, 15 Feb 2026 20:53:01 +0800 Subject: [PATCH] fix(core): fix content-boundaries start/end order in asset protocol (#14938) --- crates/tauri/src/protocol/asset.rs | 2 +- examples/streaming/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/tauri/src/protocol/asset.rs b/crates/tauri/src/protocol/asset.rs index e7c713324..78ff0e38a 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 b2f7f1ef1..608df9270 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())?;