From: David ‘Bombe’ Roden Date: Sun, 15 Jun 2008 19:54:14 +0000 (+0200) Subject: be more lenient in parse message terminator X-Git-Tag: v0.1.1~112 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=248e7be817e97f0e6d1ae88e8f015cd9eafa0113;p=jFCPlib.git be more lenient in parse message terminator --- diff --git a/src/net/pterodactylus/fcp/FcpConnectionHandler.java b/src/net/pterodactylus/fcp/FcpConnectionHandler.java index 59925e6..2c37e5e 100644 --- a/src/net/pterodactylus/fcp/FcpConnectionHandler.java +++ b/src/net/pterodactylus/fcp/FcpConnectionHandler.java @@ -83,7 +83,7 @@ class FcpConnectionHandler implements Runnable { fcpMessage = new FcpMessage(line); continue; } - if ("EndMessage".equals(line) || "Data".equals(line)) { + if ("EndMessage".equalsIgnoreCase(line) || "Data".equalsIgnoreCase(line)) { fcpConnection.handleMessage(fcpMessage); fcpMessage = null; }