Skip to content

Commit e1bf6ef

Browse files
authored
fix(core): expose content-range header in asset protocol (#11374)
1 parent 20c142f commit e1bf6ef

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch:bug
3+
---
4+
5+
Expose `content-range` header in `range` response of `asset` protocol

crates/tauri/src/protocol/asset.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ fn get_response(
8686
.and_then(|r| r.to_str().map(|r| r.to_string()).ok())
8787
{
8888
resp = resp.header(ACCEPT_RANGES, "bytes");
89+
resp = resp.header(ACCESS_CONTROL_EXPOSE_HEADERS, "content-range");
8990

9091
let not_satisfiable = || {
9192
Response::builder()

0 commit comments

Comments
 (0)