diff --git a/CHANGELOG.md b/CHANGELOG.md index f6e6ab2f..cff9480c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### 2.3.1 (Next) +* [#515](https://github.com/slack-ruby/slack-ruby-client/pull/515): Compatibility with older servers that support #rewind - [@olleolleolle](https://github.com/olleolleolle). * Your contribution here. ### 2.3.0 (2024/01/31) diff --git a/lib/slack/events/request.rb b/lib/slack/events/request.rb index c19b11d1..626909dd 100644 --- a/lib/slack/events/request.rb +++ b/lib/slack/events/request.rb @@ -39,9 +39,9 @@ def version def body @body ||= begin input = http_request.body - input.rewind + input.rewind if input.respond_to?(:rewind) body = input.read - input.rewind + input.rewind if input.respond_to?(:rewind) body end end