summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/taskmanager/tasks/DownloadText.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/openslx/taskmanager/tasks/DownloadText.java')
-rw-r--r--src/main/java/org/openslx/taskmanager/tasks/DownloadText.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/openslx/taskmanager/tasks/DownloadText.java b/src/main/java/org/openslx/taskmanager/tasks/DownloadText.java
index 11b30cf..76881d0 100644
--- a/src/main/java/org/openslx/taskmanager/tasks/DownloadText.java
+++ b/src/main/java/org/openslx/taskmanager/tasks/DownloadText.java
@@ -6,6 +6,7 @@ import java.net.URL;
import java.net.URLConnection;
import java.nio.charset.StandardCharsets;
+import org.openslx.satserver.util.ProxyHandler;
import org.openslx.satserver.util.Util;
import org.openslx.taskmanager.api.AbstractTask;
@@ -37,6 +38,9 @@ public class DownloadText extends AbstractTask
{
URLConnection connection = null;
BufferedInputStream in = null;
+
+ // Before open connection, handle proxy settings.
+ ProxyHandler.configProxy();
try {
connection = new URL( this.url ).openConnection();
in = new BufferedInputStream( connection.getInputStream() );