summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorSimon Rettberg2019-09-13 16:11:16 +0200
committerSimon Rettberg2019-09-13 16:11:16 +0200
commit798d6f3a2ab79bab527e26b6808c973b633f7668 (patch)
tree769417f9787ae8af77fb3d254a62444a86dc57ba /src/main
parent[DownloadText] Buffer everything before converting to UTF-8 (diff)
downloadtmlite-bwlp-798d6f3a2ab79bab527e26b6808c973b633f7668.tar.gz
tmlite-bwlp-798d6f3a2ab79bab527e26b6808c973b633f7668.tar.xz
tmlite-bwlp-798d6f3a2ab79bab527e26b6808c973b633f7668.zip
[DownloadText] Simplify conversion
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/openslx/taskmanager/tasks/DownloadText.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/openslx/taskmanager/tasks/DownloadText.java b/src/main/java/org/openslx/taskmanager/tasks/DownloadText.java
index db0b126..3acc647 100644
--- a/src/main/java/org/openslx/taskmanager/tasks/DownloadText.java
+++ b/src/main/java/org/openslx/taskmanager/tasks/DownloadText.java
@@ -62,7 +62,7 @@ public class DownloadText extends AbstractTask
return false;
}
}
- status.content = new String( baos.toByteArray(), StandardCharsets.UTF_8 );
+ status.content = baos.toString( StandardCharsets.UTF_8.name() );
return true;
} catch ( IOException e ) {
status.error = "Download error: " + e.toString();