diff options
Diffstat (limited to 'src/main/scala/Server/Client.scala')
-rw-r--r-- | src/main/scala/Server/Client.scala | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/main/scala/Server/Client.scala b/src/main/scala/Server/Client.scala index 7c7a786..3cd2b36 100644 --- a/src/main/scala/Server/Client.scala +++ b/src/main/scala/Server/Client.scala @@ -100,11 +100,6 @@ class Client(val socket: Socket): if nextCRLF != -1 then val message = this.incompleteMessage.take(nextCRLF) val rest = this.incompleteMessage.drop(nextCRLF + 2) - assert(rest.headOption != Some(CRLF(1))) // I will compile this with - // assertions off... I'd - // like to know how to make - // tests work with this - // config... this.incompleteMessage = rest ++ Array.fill(nextCRLF + 1)(0.toByte) // TODO: the conversion may probably be exploited to crash the server Some(String(message)) |