Skip to content

Commit

Permalink
rack.input is optional now
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jan 16, 2025
1 parent b7edcd2 commit 35c682c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tdiary/dispatcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def update
private

def adopt_rack_request_to_plain_old_tdiary_style( env )
body = env["rack.input"].read
body = env["rack.input"]&.read || ""
env["rack.input"] = StringIO.new(body)
req = TDiary::Request.new( env )
req.params # fill params to tdiary_request
Expand Down

0 comments on commit 35c682c

Please sign in to comment.