Support basic auth when downloading latest.txt.
Fixes issue 27.
This commit is contained in:
@@ -1165,7 +1165,7 @@ public class Application
|
|||||||
InputStream in = null;
|
InputStream in = null;
|
||||||
PrintStream out = null;
|
PrintStream out = null;
|
||||||
try {
|
try {
|
||||||
in = _latest.openStream();
|
in = ConnectionUtil.open(_latest).getInputStream();
|
||||||
BufferedReader bin = new BufferedReader(new InputStreamReader(in));
|
BufferedReader bin = new BufferedReader(new InputStreamReader(in));
|
||||||
for (String[] pair : ConfigUtil.parsePairs(bin, false)) {
|
for (String[] pair : ConfigUtil.parsePairs(bin, false)) {
|
||||||
if (pair[0].equals("version")) {
|
if (pair[0].equals("version")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user