twilio / twilio-ruby

A Ruby gem for communicating with the Twilio API and generating TwiML
MIT License
1.35k stars 462 forks source link

fix: Only require twilio_webhook_authentication if Rack version > 2 #606

Closed jasonnoble closed 2 years ago

jasonnoble commented 2 years ago

Fixes #605

Fixes

Only require the twilio_webhook_authentication functionality if the Rack version is > 2.

FYI, #602 attempted to fix this, but doesn't work when the Rack version is < 2.

Checklist

jasonnoble commented 2 years ago

I'm more than willing to add tests/documentation if you feel it's required. Pretty small change IMO.