From 987ed84d93b3a45a5f23ccb7a5fa7a98b9de5edd Mon Sep 17 00:00:00 2001 From: yvt Date: Thu, 1 May 2014 22:04:21 +0900 Subject: [PATCH] Fixed a bug in gzip/deflate stream (fix #91) --- Sources/Core/DeflateStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Core/DeflateStream.cpp b/Sources/Core/DeflateStream.cpp index f96ea8f8..a4a7cc01 100644 --- a/Sources/Core/DeflateStream.cpp +++ b/Sources/Core/DeflateStream.cpp @@ -266,7 +266,7 @@ namespace spades { while(bytes > 0){ if(bufferPos >= buffer.size()){ FillBuffer(); - if(reachedEOF) + if(reachedEOF && bufferPos >= buffer.size()) break; }