mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-27 15:13:23 +03:00
fix(core): expose content-range
header in asset
protocol (#11374)
This commit is contained in:
parent
20c142f749
commit
e1bf6ef8cb
5
.changes/asset-protocol-expose-content-range.md
Normal file
5
.changes/asset-protocol-expose-content-range.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": patch:bug
|
||||
---
|
||||
|
||||
Expose `content-range` header in `range` response of `asset` protocol
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user