plivo / plivo-php

Plivo PHP Helper Library
http://www.plivo.com
MIT License
110 stars 117 forks source link

validateV3Signature fails when there is no query parameter in URL using Post Method #335

Open Matt-B50 opened 10 months ago

Matt-B50 commented 10 months ago

I get

Warning: Undefined array key "query" in Plivo\Util\v3SignatureValidation::constructGetUrl() (line 101 of /code/vendor/plivo/plivo-php/src/Plivo/Util/v3SignatureValidation.php)

See https://github.com/plivo/plivo-php/blob/0061ba51c96c6c27e92c2ba98250f3547b81b794/src/Plivo/Util/v3SignatureValidation.php#L101C9-L101C44

I'm submitting the URL called by Plivo on a POST request to my end point. It has no query parameter (and I'm not switching to GET requests). I've overcome this by appending a "?" to my URL when calling validateV3Signature