From b96e5681aaabf7b49411aa3c1b56f86c7e8570e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Jim=C3=A9nez=20Moreno?= Date: Tue, 13 Nov 2018 16:57:41 +0100 Subject: [PATCH] Do not set Receiving body to Done when it's not needed --- components/net/fetch/methods.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/components/net/fetch/methods.rs b/components/net/fetch/methods.rs index fe6400822ed..a15045bef4b 100644 --- a/components/net/fetch/methods.rs +++ b/components/net/fetch/methods.rs @@ -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(), ));