mirror of
https://github.com/TeamPiped/piped-proxy.git
synced 2024-08-14 23:50:45 +00:00
parent
40d0cef105
commit
8bbda01e9c
1 changed files with 4 additions and 0 deletions
|
@ -225,6 +225,10 @@ async fn index(req: HttpRequest) -> Result<HttpResponse, Box<dyn Error>> {
|
|||
}
|
||||
}
|
||||
|
||||
if let Some(content_length) = resp.headers().get("content-length") {
|
||||
response.append_header(("content-length", content_length));
|
||||
}
|
||||
|
||||
// Stream response
|
||||
Ok(response.streaming(resp.bytes_stream()))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue