Skip to content

Commit

Permalink
fix: Only require twilio_webhook_authentication if Rack version > 2 (t…
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonnoble authored Apr 25, 2022
1 parent fa1dac8 commit 5d45721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/twilio-ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
require 'json'

require 'twilio-ruby/version' unless defined?(Twilio::VERSION)
require 'rack/twilio_webhook_authentication' if defined?(Rack)
require 'rack/twilio_webhook_authentication' if defined?(Rack) && defined?(Rack::MediaType)

require 'twilio-ruby/util'
require 'twilio-ruby/security/request_validator'
Expand Down

0 comments on commit 5d45721

Please sign in to comment.