JRuby with Ruby on Rails HTTP Streaming outputting odd characters

18 views
Skip to first unread message

nosretep

unread,
Mar 2, 2012, 2:19:51 PM3/2/12
to rubyonra...@googlegroups.com
I'm using Ruby on Rails with JRuby on Tomcat.

This is my controller:

class ApplicationController < ActionController::Base 
  def index
    render :stream => true, :text => "Hello World!"
  end
end


This is the output:

c
Hello World!
0



Does anyone have any idea why the "c" or the "0" characters are output onto the page? They do not appear if I set :stream => false. HTTP Streaming does seem to work for Ruby on Rails using JRuby on Tomcat, but there's this oddity.
Reply all
Reply to author
Forward
0 new messages