From dac4a4a4890c5288c103896c7edb791109a4ea2c Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 15 Apr 2015 15:39:50 +0900 Subject: [PATCH] Refactored a bit for ChunkStream.cs --- websocket-sharp/Net/ChunkStream.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websocket-sharp/Net/ChunkStream.cs b/websocket-sharp/Net/ChunkStream.cs index 473670c3..564fde29 100644 --- a/websocket-sharp/Net/ChunkStream.cs +++ b/websocket-sharp/Net/ChunkStream.cs @@ -170,7 +170,7 @@ namespace WebSocketSharp.Net throwProtocolViolation ("LF is expected."); if (!_sawCr && b == 10) - throwProtocolViolation ("CR hasn't been found."); + throwProtocolViolation ("LF is unexpected."); if (b == 32) // SP _gotIt = true; @@ -232,7 +232,7 @@ namespace WebSocketSharp.Net } if ((_trailerState == 0 || _trailerState == 2) && b == 10) - throwProtocolViolation ("CR hasn't been found."); + throwProtocolViolation ("LF is unexpected."); if ((_trailerState == 1 || _trailerState == 3) && b != 10) throwProtocolViolation ("LF is expected.");