I ran into this issue when I wrongly expected JSON requests I am making from a Twilio serverless function to one of my services to be correctly verified. I know that Twilio will always include the bodySHA256 query parameter for JSON requests. But if you use Twilio::Security::RequestValidator#validate in a custom way you might pass the wrong URL and in that case it shouldn't crash.
Checklist
[x] I acknowledge that all my contributions will be made under the project's license
[ ] I have made a material change to the repo (functionality, testing, spelling, grammar)
Fixes #613
I ran into this issue when I wrongly expected JSON requests I am making from a Twilio serverless function to one of my services to be correctly verified. I know that Twilio will always include the
bodySHA256
query parameter for JSON requests. But if you useTwilio::Security::RequestValidator#validate
in a custom way you might pass the wrong URL and in that case it shouldn't crash.Checklist