Skip to content

Commit

Permalink
Try to avoid to load env[rack.input].rewind
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Apr 9, 2024
1 parent 66156d4 commit e01fd2e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/tdiary/dispatcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ def adopt_rack_request_to_plain_old_tdiary_style( env )
req = TDiary::Request.new( env )
req.params # fill params to tdiary_request
$RACK_ENV = req.env
# Rack 3.x has been removed rack.input rewinding
begin
env["rack.input"].instance_variable_get(:@input).rewind
rescue
env["rack.input"].rewind
end
fake_stdin_as_params
req
end
Expand Down

0 comments on commit e01fd2e

Please sign in to comment.