Index: src/org/adblockplus/brazil/RequestHandler.java |
diff --git a/src/org/adblockplus/brazil/RequestHandler.java b/src/org/adblockplus/brazil/RequestHandler.java |
index 1f06527d00af359daa24227e35ec7826fcb4ee4f..8a44ea4fe36ab11bba929f0a0d5baf845b62c788 100644 |
--- a/src/org/adblockplus/brazil/RequestHandler.java |
+++ b/src/org/adblockplus/brazil/RequestHandler.java |
@@ -116,9 +116,10 @@ public class RequestHandler extends BaseRequestHandler |
{ |
boolean block = false; |
+ final String referrer = request.getRequestHeader("referer"); |
try |
{ |
- block = application.matches(request.url, request.query, request.getRequestHeader("referer"), request.getRequestHeader("accept")); |
+ block = application.matches(request.url, request.query, referrer, request.getRequestHeader("accept")); |
} |
catch (final Exception e) |
{ |
@@ -230,7 +231,7 @@ public class RequestHandler extends BaseRequestHandler |
// We are transparent, it's not our deal if it's malformed. |
} |
- selectors = application.getSelectorsForDomain(reqHost); |
+ selectors = application.getSelectorsForDomain(reqHost, referrer); |
} |
// If no filters are applicable just pass through the response |
if (selectors == null || target.getResponseCode() != 200) |