lib/rack/twilio_webhook_authentication.rb in twilio-ruby-3.12.3 vs lib/rack/twilio_webhook_authentication.rb in twilio-ruby-3.13.0
- old
+ new
@@ -31,10 +31,14 @@
params = request.post? ? request.POST : {}
signature = env['HTTP_X_TWILIO_SIGNATURE']
if validator.validate(original_url, params, signature)
@app.call(env)
else
- [403, {'Content-Type' => 'text/plain'}, ["Twilio Request Validation Failed."]]
+ [
+ 403,
+ {'Content-Type' => 'text/plain'},
+ ["Twilio Request Validation Failed."]
+ ]
end
end
end
end