-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Reading failed with file URL containing a hostname such as :
file://localhost/Users/gaellalire/proxies.pac
readPacFileContent method in UrlPacScriptSource should not try to create a file
from an URL
A possible fix below
Reader reader = null;
if (scriptUrl.indexOf(":/") == -1) {
reader = new FileReader(scriptUrl);
} else {
reader = new InputStreamReader(new URL(scriptUrl).openStream());
}
BufferedReader r = new BufferedReader(reader);
Original issue reported on code.google.com by gael.lal...@gmail.com on 13 Nov 2012 at 10:10