🔊 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);
|
||||
|
||||
info! ("Serving range {}-{}", range.start, range.end);
|
||||
|
||||
let content_length = range.end - range.start;
|
||||
|
||||
let body = if decision.should_send_body {
|
||||
info! ("Sending range {}-{}", range.start, range.end);
|
||||
|
||||
let seek = SeekFrom::Start (range.start);
|
||||
f.seek (seek).await?;
|
||||
|
||||
|
@ -181,6 +181,8 @@ async fn serve_file (
|
|||
Some (rx)
|
||||
}
|
||||
else {
|
||||
info! ("Not sending body");
|
||||
|
||||
None
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue