🔊 change logs a bit
parent
6ea8b5c30f
commit
80bd4abad3
|
@ -165,11 +165,11 @@ async fn serve_file (
|
||||||
|
|
||||||
let (range, range_requested) = (range.range, range.range_requested);
|
let (range, range_requested) = (range.range, range.range_requested);
|
||||||
|
|
||||||
info! ("Serving range {}-{}", range.start, range.end);
|
|
||||||
|
|
||||||
let content_length = range.end - range.start;
|
let content_length = range.end - range.start;
|
||||||
|
|
||||||
let body = if decision.should_send_body {
|
let body = if decision.should_send_body {
|
||||||
|
info! ("Sending range {}-{}", range.start, range.end);
|
||||||
|
|
||||||
let seek = SeekFrom::Start (range.start);
|
let seek = SeekFrom::Start (range.start);
|
||||||
f.seek (seek).await?;
|
f.seek (seek).await?;
|
||||||
|
|
||||||
|
@ -181,6 +181,8 @@ async fn serve_file (
|
||||||
Some (rx)
|
Some (rx)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
info! ("Not sending body");
|
||||||
|
|
||||||
None
|
None
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue