Skip to content

Commit 6414455

Browse files
authored
request.rb: Compatibility with rackup's WEBRick handler
1 parent 9e6d117 commit 6414455

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/slack/events/request.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ def version
3939
def body
4040
@body ||= begin
4141
input = http_request.body
42-
input.rewind
42+
input.rewind if input.respond_to?(:rewind)
4343
body = input.read
44-
input.rewind
44+
input.rewind if input.respond_to?(:rewind)
4545
body
4646
end
4747
end

0 commit comments

Comments
 (0)