Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/org/adblockplus/brazil/RequestHandler.java

Issue 29331923: Issue 3364 - Implement JNI bindings for IsDocument/ElemhideWhitelisted (Closed)
Patch Set: Typo Created Dec. 4, 2015, 5:44 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)
« no previous file with comments | « src/org/adblockplus/android/AndroidWebRequest.java ('k') | src/org/adblockplus/libadblockplus/FilterEngine.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld