Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Unified Diff: net/http/http_cache_transaction.cc

Issue 508823009: Mark SHA-1 as deprecated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cert_verify_result_sha1
Patch Set: Moar work Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/http/http_cache_transaction.cc
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index b06e8f3a272b4df533756a423f5a5fc0b321b532..f8aeb786e2882bd9b9fd82e89a19b3678fdf492c 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -2636,7 +2636,8 @@ int HttpCache::Transaction::WriteResponseInfoToEntry(bool truncated) {
// reverse-map the cert status to a net error and replay the net error.
if ((cache_->mode() != RECORD &&
response_.headers->HasHeaderValue("cache-control", "no-store")) ||
- net::IsCertStatusError(response_.ssl_info.cert_status)) {
+ (net::IsCertStatusError(response_.ssl_info.cert_status) &&
+ !net::IsCertStatusMinorError(response_.ssl_info.cert_status))) {
DoneWritingToEntry(false);
if (net_log_.IsLogging())
net_log_.EndEvent(NetLog::TYPE_HTTP_CACHE_WRITE_INFO);

Powered by Google App Engine
This is Rietveld 408576698