Skip to content

Commit

Permalink
Update HttpServer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauriichan authored Nov 28, 2021
1 parent 9271d35 commit ec358de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ec358de

Please sign in to comment.