Log incoming Atom from PuSH

lolsob-rspec
Eugen Rochko 2016-10-10 17:40:28 +02:00
parent 80217fd58b
commit 4f406d89b1
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,8 @@ class Api::SubscriptionsController < ApiController
body = request.body.read
subscription = @account.subscription(api_subscription_url(@account.id))
Rails.logger.debug body
if subscription.verify(body, request.headers['HTTP_X_HUB_SIGNATURE'])
ProcessFeedService.new.call(body, @account)
head 201