send proper headers
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m51s
CI/CD Pipeline / deploy (push) Successful in 4m52s

This commit is contained in:
2025-08-08 13:08:32 +02:00
parent 9d2687f8a1
commit 240f7d7f8d

View File

@@ -11,7 +11,12 @@ pub async fn stream_handler(State(state): State<Arc<AppState>>) -> Response {
Response::builder()
.header("Content-Type", "audio/mpeg")
.header("Cache-Control", "no-cache")
.header("Cache-Control", "no-cache, no-store, must-revalidate")
.header("Pragma", "no-cache")
.header("Expires", "0")
.header("Accept-Ranges", "none")
.header("Transfer-Encoding", "chunked")
.header("X-Content-Duration", "infinity")
.body(body)
.unwrap()
}