fix(core): expose content-range header in asset protocol (#11374)

This commit is contained in:
Huang Xin 2024-10-17 13:41:27 +02:00 committed by GitHub
parent 20c142f749
commit e1bf6ef8cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"tauri": patch:bug
---
Expose `content-range` header in `range` response of `asset` protocol

View File

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