From 9f8241f8ea33ee397d3d83217c04652dd0929ec6 Mon Sep 17 00:00:00 2001 From: Andrea Fontana Date: Wed, 22 May 2024 17:49:42 +0200 Subject: [PATCH] Fix spaces --- source/serverino/interfaces.d | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/serverino/interfaces.d b/source/serverino/interfaces.d index 2191233..be9185b 100644 --- a/source/serverino/interfaces.d +++ b/source/serverino/interfaces.d @@ -526,11 +526,10 @@ struct Request { auto nextLine = chunk.countUntil("\n"); - - if(nextLine < 0){ - throw new Exception("Invalid Boundaries delimitation."); - } - + + if(nextLine < 0) + throw new Exception("Invalid boundaries delimitation."); + auto line = chunk[0..nextLine]; // All lines must end with \r\n