examples/stream.rb in goliath-0.9.1 vs examples/stream.rb in goliath-0.9.2

- old
+ new

@@ -19,19 +19,19 @@ end def response(env) i = 0 pt = EM.add_periodic_timer(1) do - env.stream_send("#{i} ") + env.stream_send("#{i}\n") i += 1 end EM.add_timer(10) do pt.cancel env.stream_send("!! BOOM !!\n") env.stream_close end - [200, {}, Goliath::Response::STREAMING] + streaming_response(202, {'X-Stream' => 'Goliath'}) end end