mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +01:00
Store the NetworkError in network error Responses.
This commit is contained in:
parent
6af63d6af1
commit
784c45a306
3 changed files with 69 additions and 55 deletions
|
@ -708,7 +708,7 @@ fn response_is_done(response: &Response) -> bool {
|
|||
(*response.body.lock().unwrap()).is_done()
|
||||
}
|
||||
// if the internal response cannot have a body, it shouldn't block the "done" state
|
||||
ResponseType::Opaque | ResponseType::OpaqueRedirect | ResponseType::Error => true
|
||||
ResponseType::Opaque | ResponseType::OpaqueRedirect | ResponseType::Error(..) => true
|
||||
};
|
||||
|
||||
let internal_complete = if let Some(ref res) = response.internal_response {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue