Skip to content

Commit

Permalink
Remove Rack::Chunked deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
ericproulx committed Jan 6, 2024
1 parent 2cd0a57 commit 75c2423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/grape/api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ class DummyFormatClass
blk.yield ' file content'
end

subject.use defined?(Rack::Chunked) ? Rack::Chunked : ChunkedResponse
subject.use Gem::Version.new(Rack.release) < Gem::Version.new('3') ? Rack::Chunked : ChunkedResponse
subject.get('/stream') { stream test_stream }
get '/stream', {}, 'HTTP_VERSION' => 'HTTP/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1'

Expand Down

0 comments on commit 75c2423

Please sign in to comment.