be more lenient in parse message terminator
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sun, 15 Jun 2008 19:54:14 +0000 (21:54 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sun, 15 Jun 2008 19:54:14 +0000 (21:54 +0200)
src/net/pterodactylus/fcp/FcpConnectionHandler.java

index 59925e6..2c37e5e 100644 (file)
@@ -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;
                                }