Skip to content

Commit c8b24ed

Browse files
committed
Update server.rb
1 parent ab012fb commit c8b24ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/ruby/configuring-your-server/server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
require 'json'
33

44
post '/payload' do
5-
push = JSON.parse(params[:payload])
5+
push = JSON.parse(request.body.read)
66
puts "I got some JSON: #{push.inspect}"
77
end

0 commit comments

Comments
 (0)