Skip to content

Commit 83cab7f

Browse files
committed
Ignore OCSP (Firefox 32+)
Currently we have two solutions to this; now let's merge them...
1 parent c07db96 commit 83cab7f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/https-everywhere.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,11 @@ HTTPSEverywhere.prototype = {
478478

479479
this.log(DBUG,"Got http-on-modify-request: "+channel.URI.spec);
480480
var lst = this.getApplicableListForChannel(channel); // null if no window is associated (ex: xhr)
481+
// Firefox 32+ lets us infer whether this is an OCSP request
482+
if ("allowSTS" in channel && !channel.allowSTS) {
483+
this.log(INFO, "Channel with HTTPS rewrites forbidden, probably OCSP, for " + channel.URI.spec);
484+
return;
485+
}
481486
if (channel.URI.spec in https_everywhere_blacklist) {
482487
this.log(DBUG, "Avoiding blacklisted " + channel.URI.spec);
483488
if (lst) lst.breaking_rule(https_everywhere_blacklist[channel.URI.spec]);

0 commit comments

Comments
 (0)