From 52d4e876f2f9012712820a6d55db822421b79a97 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 25 Aug 2015 21:52:25 +0200 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20specify=20charsets=20in=20conten?= =?utf8?q?t=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java b/src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java index ac04543..63711b9 100644 --- a/src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java +++ b/src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java @@ -77,8 +77,8 @@ public class ReactionRunner implements Runnable { private Output createErrorOutput(Reaction reaction, State state) { DefaultOutput output = new DefaultOutput(String.format("Error while processing “%s!”", reaction.name())); - output.addText("text/plain; charset=utf-8", createErrorEmailText(reaction, state)); - output.addText("text/html; charset=utf-8", createErrorEmailText(reaction, state)); + output.addText("text/plain", createErrorEmailText(reaction, state)); + output.addText("text/html", createErrorEmailText(reaction, state)); return output; } @@ -133,7 +133,7 @@ public class ReactionRunner implements Runnable { private Output createEmptyStateOutput(Reaction reaction, State state) { DefaultOutput defaultOutput = new DefaultOutput(String.format("Reached Empty State for “%s!”", reaction.name())); - defaultOutput.addText("text/plain; charset=utf-8", String.format("The %s for %s was empty.", state.getClass().getSimpleName(), reaction.name())); + defaultOutput.addText("text/plain", String.format("The %s for %s was empty.", state.getClass().getSimpleName(), reaction.name())); return defaultOutput; } -- 2.7.4