Writing out more tests, fixed some bugs
This commit is contained in:
parent
e14b76c7cb
commit
b640f35621
23 changed files with 1069 additions and 41 deletions
|
@ -12,7 +12,7 @@ class Api::SubscriptionsController < ApiController
|
|||
def update
|
||||
body = request.body.read
|
||||
|
||||
if @account.subscription(api_subscription_url(@account.id)).verify(body, env['HTTP_X_HUB_SIGNATURE'])
|
||||
if @account.subscription(api_subscription_url(@account.id)).verify(body, request.headers['HTTP_X_HUB_SIGNATURE'])
|
||||
ProcessFeedService.new.(body, @account)
|
||||
render nothing: true, status: 201
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue