plivo-php
plivo-php copied to clipboard
validateV3Signature fails when there is no query parameter in URL using Post Method
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