Ethernet shield V3 + Mega 2560 HTTP server freezes randomly

In both versions of the code you react very strange to buffer overflows. In V1 you simply ignore it and overwrite other stuff. In V2 you overwrite the beginning of your buffer if there is more data in the request than your buffer has in size. Why not just ignoring the rest of the request data if your buffer is full?