mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(core): fix content-boundaries start/end order in asset protocol (#14938)
This commit is contained in:
@@ -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?;
|
||||
|
||||
|
||||
@@ -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())?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user