lib/slack/events/request.rb in slack-ruby-client-0.15.1 vs lib/slack/events/request.rb in slack-ruby-client-0.16.0

- old
+ new

@@ -33,10 +33,14 @@ 'v0' end # Request body. def body - @body ||= http_request.body.read + @body ||= begin + body = http_request.body.read + http_request.body.rewind + body + end end # Returns true if the signature coming from Slack has expired. def expired? timestamp.nil? || (Time.now.to_i - timestamp.to_i).abs > signature_expires_in