Skip to content

Commit

Permalink
Do not set Receiving body to Done when it's not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ferjm committed Nov 26, 2018
1 parent ff1e8aa commit b96e568
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion components/net/fetch/methods.rs
Expand Up @@ -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(),
));
Expand Down

0 comments on commit b96e568

Please sign in to comment.