forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathissue125.patch
More file actions
14 lines (14 loc) · 786 Bytes
/
issue125.patch
File metadata and controls
14 lines (14 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git http_cache_transaction.cc http_cache_transaction.cc
index 24002d75215d..2a44a6368558 100644
--- http_cache_transaction.cc
+++ http_cache_transaction.cc
@@ -2601,7 +2601,8 @@ int HttpCache::Transaction::WriteResponseInfoToEntry(bool truncated) {
// blocking page is shown. An alternative would be to reverse-map the cert
// status to a net error and replay the net error.
if ((response_.headers->HasHeaderValue("cache-control", "no-store")) ||
- IsCertStatusError(response_.ssl_info.cert_status)) {
+ (!cache_->GetSession()->params().ignore_certificate_errors &&
+ IsCertStatusError(response_.ssl_info.cert_status))) {
DoneWritingToEntry(false);
if (net_log_.IsCapturing())
net_log_.EndEvent(NetLogEventType::HTTP_CACHE_WRITE_INFO);