lib/kcar/response.rb in kcar-0.2.0 vs lib/kcar/response.rb in kcar-0.3.0

- old
+ new

@@ -111,10 +111,10 @@ # since Rack does not provide a way to explicitly send trailers # in the response, we'll just yield a stringified version to our # server and pretend it's part of the body. trailers = @parser.extract_trailers(@hdr) - yield(trailers.map! { |k,v| "#{k}: #{v}\r\n" }.join("") << CRLF) + yield(trailers.map! { |k,v| "#{k}: #{v}\r\n" }.join << CRLF) end def each_until_eof yield @buf unless @buf.empty? # easy, just read and write everything until EOFError