Skip to content

Commit

Permalink
fix(core): expose content-range header in asset protocol (#11374)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrox authored Oct 17, 2024
1 parent 20c142f commit e1bf6ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/asset-protocol-expose-content-range.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:bug
---

Expose `content-range` header in `range` response of `asset` protocol
1 change: 1 addition & 0 deletions crates/tauri/src/protocol/asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ fn get_response(
.and_then(|r| r.to_str().map(|r| r.to_string()).ok())
{
resp = resp.header(ACCEPT_RANGES, "bytes");
resp = resp.header(ACCESS_CONTROL_EXPOSE_HEADERS, "content-range");

let not_satisfiable = || {
Response::builder()
Expand Down

0 comments on commit e1bf6ef

Please sign in to comment.