diff options
author | José Valim <jose.valim@gmail.com> | 2011-04-19 15:04:28 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-04-19 15:04:28 +0200 |
commit | 069e9b004f91c4ace1373ab5203bb00ab41bd1f9 (patch) | |
tree | ee757c414241223251b10a86f4163f1ee4ccc45e /actionpack/test/controller | |
parent | b398520c1406824efd12df6bb57996aa9781f876 (diff) | |
download | rails-069e9b004f91c4ace1373ab5203bb00ab41bd1f9.tar.gz rails-069e9b004f91c4ace1373ab5203bb00ab41bd1f9.tar.bz2 rails-069e9b004f91c4ace1373ab5203bb00ab41bd1f9.zip |
Do not stream on HTTP/1.0.
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/new_base/render_streaming_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/test/controller/new_base/render_streaming_test.rb b/actionpack/test/controller/new_base/render_streaming_test.rb index b8df5ec4e8..fed8d40b47 100644 --- a/actionpack/test/controller/new_base/render_streaming_test.rb +++ b/actionpack/test/controller/new_base/render_streaming_test.rb @@ -83,6 +83,14 @@ module RenderStreaming assert_streaming! end + test "do not stream on HTTP/1.0" do + get "/render_streaming/basic/hello_world", nil, "HTTP_VERSION" => "HTTP/1.0" + assert_body "Hello world, I'm here!" + assert_status 200 + assert_equal "22", headers["Content-Length"] + assert_equal nil, headers["Transfer-Encoding"] + end + def assert_streaming!(cache="no-cache") assert_status 200 assert_equal nil, headers["Content-Length"] |