diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-10 17:40:28 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-10 17:40:28 +0200 |
commit | f49ed8c819f8d5e171b4a93f92a60936c0f3d93f (patch) | |
tree | 7fba2f159920d9563ba5c30c6cab86595933533d | |
parent | 38ce960ff91b63044073cfe26bf79dbc360842d6 (diff) |
Log incoming Atom from PuSH
-rw-r--r-- | app/controllers/api/subscriptions_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/api/subscriptions_controller.rb b/app/controllers/api/subscriptions_controller.rb index c3aeee94d..b51593721 100644 --- a/app/controllers/api/subscriptions_controller.rb +++ b/app/controllers/api/subscriptions_controller.rb @@ -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 |