lib/protocol/http1/body/fixed.rb in protocol-http1-0.10.2 vs lib/protocol/http1/body/fixed.rb in protocol-http1-0.10.3

- old
+ new

@@ -51,9 +51,11 @@ if @remaining > 0 if chunk = @stream.readpartial(@remaining) @remaining -= chunk.bytesize return chunk + else + raise EOFError, "Stream closed with #{@remaining} bytes remaining!" end end end def join