From ec358de4bab138e1277fb7bc17eec5d868c5061f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Endre=C3=9F?= Date: Sun, 28 Nov 2021 18:23:22 +0100 Subject: [PATCH] Update HttpServer.java --- .../java/com/syntaxphoenix/syntaxapi/net/http/HttpServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/src/main/java/com/syntaxphoenix/syntaxapi/net/http/HttpServer.java b/net/src/main/java/com/syntaxphoenix/syntaxapi/net/http/HttpServer.java index 3062ea6..ab1401c 100644 --- a/net/src/main/java/com/syntaxphoenix/syntaxapi/net/http/HttpServer.java +++ b/net/src/main/java/com/syntaxphoenix/syntaxapi/net/http/HttpServer.java @@ -194,7 +194,7 @@ protected void handleClientAsync(Socket socket) throws Throwable { } while ((line = readLine(stream)) != null) { - if (line.isBlank()) { + if (line.trim().isEmpty()) { break; } request.parseHeader(line);