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; |
} |
- |
} |