diff --git a/components/net/http_cache.rs b/components/net/http_cache.rs index 219a627314c..12fac0ae852 100644 --- a/components/net/http_cache.rs +++ b/components/net/http_cache.rs @@ -585,7 +585,7 @@ impl HttpCache { /// Freshening Stored Responses upon Validation. /// pub fn refresh(&mut self, request: &Request, response: Response, done_chan: &mut DoneChannel) -> Option { - 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() {