mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
http-cache: improve handling of network errors and partial content
This commit is contained in:
parent
d544c186b9
commit
4f41065dfb
2 changed files with 40 additions and 9 deletions
|
@ -457,10 +457,8 @@ pub fn main_fetch(
|
|||
// Step 24.
|
||||
target.process_response_eof(&response);
|
||||
|
||||
if !response.is_network_error() {
|
||||
if let Ok(mut http_cache) = context.state.http_cache.write() {
|
||||
http_cache.update_awaiting_consumers(&request, &response);
|
||||
}
|
||||
if let Ok(mut http_cache) = context.state.http_cache.write() {
|
||||
http_cache.update_awaiting_consumers(&request, &response);
|
||||
}
|
||||
|
||||
// Steps 25-27.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue