lib/slack/events/request.rb in slack-ruby-client-2.2.0 vs lib/slack/events/request.rb in slack-ruby-client-2.3.0

- old
+ new

@@ -36,11 +36,13 @@ end # Request body. def body @body ||= begin - body = http_request.body.read - http_request.body.rewind + input = http_request.body + input.rewind + body = input.read + input.rewind body end end # Returns true if the signature coming from Slack has expired.