mirror of
https://github.com/TeamPiped/piped-proxy.git
synced 2024-12-13 22:00:34 +05:30
parent
40d0cef105
commit
8bbda01e9c
@ -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
|
// Stream response
|
||||||
Ok(response.streaming(resp.bytes_stream()))
|
Ok(response.streaming(resp.bytes_stream()))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user