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

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

Issue 29323464: Issue 2894 - 'archive.org/web' links fail to open on rooted devices (Closed)
Patch Set: Created Aug. 12, 2015, 9:49 a.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
« no previous file with comments | « src/org/adblockplus/brazil/RequestHandler.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/org/adblockplus/brazil/TransparentProxyHandler.java
diff --git a/src/org/adblockplus/brazil/TransparentProxyHandler.java b/src/org/adblockplus/brazil/TransparentProxyHandler.java
index d0804f889342b5bb8ba80fa16a12cb986b51a0ac..1736f0f7a7a5927fb50352802d9a84d5fe411f95 100644
--- a/src/org/adblockplus/brazil/TransparentProxyHandler.java
+++ b/src/org/adblockplus/brazil/TransparentProxyHandler.java
@@ -39,11 +39,10 @@ public class TransparentProxyHandler implements Handler
@Override
public boolean respond(final Request request) throws IOException
{
- if (!request.url.contains("://"))
+ if (!RequestHandler.RE_HTTP.matcher(request.url).find())
{
request.url = "http://" + request.headers.get("host") + request.url;
}
return false;
}
-
}
« no previous file with comments | « src/org/adblockplus/brazil/RequestHandler.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld