lib/http/protocol/http1/connection.rb in http-protocol-0.9.3 vs lib/http/protocol/http1/connection.rb in http-protocol-0.10.0

- old
+ new

@@ -203,13 +203,9 @@ end end def write_empty_body(body) @stream.write("content-length: 0\r\n\r\n") - - # Consume the input body. - body.each{} if body - @stream.flush end def write_fixed_length_body(body, length) @stream.write("content-length: #{length}\r\n\r\n")