Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Fix stack level too deep when writing to ChunkStream #148

Merged
merged 1 commit into from
Apr 30, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/reel/stream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def data(data)
class ChunkStream < Stream
def write(chunk)
chunk_header = chunk.bytesize.to_s(16)
write chunk_header + Response::Writer::CRLF
write chunk + Response::Writer::CRLF
super chunk_header + Response::Writer::CRLF
super chunk + Response::Writer::CRLF
self
end
alias :<< :write
Expand Down