I wanted to test the new streaming feature. The code below works fine in Chrome, its streaming as it should. However in Firefox 23 I get the dialog window "You have chosen to open" -> "Open with" / "Save file" with that request.
def show
response.headers[ "Content-Type" ] = "text/event-stream"
3.times {
response.stream.write "Hello, browser!\n"
sleep 1 }
response.stream.close
end
curl response headers contain:
Content-Type: text/event-stream