mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Do not set Receiving body to Done when it's not needed
This commit is contained in:
parent
ff1e8aaa08
commit
b96e5681aa
1 changed files with 0 additions and 1 deletions
|
@ -596,7 +596,6 @@ fn scheme_fetch(
|
|||
let range = range.get_final(file_size);
|
||||
let mut reader = BufReader::with_capacity(FILE_CHUNK_SIZE, file);
|
||||
if reader.seek(SeekFrom::Start(range.start as u64)).is_err() {
|
||||
*response.body.lock().unwrap() = ResponseBody::Done(vec![]);
|
||||
return Response::network_error(NetworkError::Internal(
|
||||
"Unexpected method for file".into(),
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue