Skip to content

Commit

Permalink
Update server.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Jun 27, 2014
1 parent ab012fb commit c8b24ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/ruby/configuring-your-server/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
require 'json'

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

0 comments on commit c8b24ed

Please sign in to comment.