fix(core): fix content-boundaries start/end order in asset protocol (#14938)

This commit is contained in:
cui
2026-02-15 20:53:01 +08:00
committed by GitHub
parent 0d1cb83bab
commit 476e8ee7f3
2 changed files with 2 additions and 2 deletions

View File

@@ -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?;

View File

@@ -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())?;