From ea19cb28b8c1076db67a6d3a946db6c24b6030b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 4 Oct 2017 19:26:54 +0200 Subject: [PATCH] Flush the correct stream --- src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java index 943135d..21f44d2 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java @@ -228,7 +228,7 @@ public abstract class JsonPage implements FreenetPage { writer = new OutputStreamWriter(byteArrayOutputStream, "UTF-8"); printWriter = new PrintWriter(writer); t.printStackTrace(printWriter); - byteArrayOutputStream.flush(); + printWriter.flush(); return byteArrayOutputStream.toByteArray(); } catch (IOException ioe1) { /* quite not possible. */ -- 2.7.4