mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Use specific assertion for net http_cache
This commit is contained in:
parent
bb7964a4bb
commit
0dda473146
1 changed files with 1 additions and 1 deletions
|
@ -585,7 +585,7 @@ impl HttpCache {
|
|||
/// Freshening Stored Responses upon Validation.
|
||||
/// <https://tools.ietf.org/html/rfc7234#section-4.3.4>
|
||||
pub fn refresh(&mut self, request: &Request, response: Response, done_chan: &mut DoneChannel) -> Option<Response> {
|
||||
assert!(response.status == Some(StatusCode::NotModified));
|
||||
assert_eq!(response.status, Some(StatusCode::NotModified));
|
||||
let entry_key = CacheKey::new(request.clone());
|
||||
if let Some(cached_resources) = self.entries.get_mut(&entry_key) {
|
||||
for cached_resource in cached_resources.iter_mut() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue