Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions lib/slack/events/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down