Works fine now finally

This commit is contained in:
Igor Katson 2024-04-24 22:21:41 +01:00
parent 7e180c05b3
commit f0788f2c4a
4 changed files with 121 additions and 35 deletions

View file

@ -163,9 +163,6 @@ impl HttpApi {
headers: http::HeaderMap,
) -> Result<impl IntoResponse> {
let mut stream = state.api_stream(idx, file_id)?;
dbg!(&headers);
let mut status = StatusCode::OK;
let mut output_headers = HeaderMap::new();
output_headers.insert("Accept-Ranges", HeaderValue::from_static("bytes"));