diff options
author | CYBAI <cyb.ai.815@gmail.com> | 2018-01-25 23:47:43 +0800 |
---|---|---|
committer | CYBAI <cyb.ai.815@gmail.com> | 2018-01-26 01:01:02 +0800 |
commit | 0dda473146ee5605e8a5cad08e5d57e424ea032e (patch) | |
tree | fb78e4060c910ae1ed0e23807943972f80845b4d /components/net/http_cache.rs | |
parent | bb7964a4bb0c8dc9c7f975d5af6dad1dfb99d1d5 (diff) | |
download | servo-0dda473146ee5605e8a5cad08e5d57e424ea032e.tar.gz servo-0dda473146ee5605e8a5cad08e5d57e424ea032e.zip |
Use specific assertion for net http_cache
Diffstat (limited to 'components/net/http_cache.rs')
-rw-r--r-- | components/net/http_cache.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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. /// <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() { |