Skip to content

Commit

Permalink
SMS-7151
Browse files Browse the repository at this point in the history
  • Loading branch information
eshangupta-plivo committed Nov 8, 2024
1 parent 42683ca commit f3091b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Plivo/BaseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ public function fetch($uri, $params)
static::$isLookupRequest = true;
unset($params['isLookupRequest']);
}
else{
static::$isLookupRequest = false;
}
if (array_key_exists("isZentrunkRequest",$params)) {
static::$isZentrunkRequest = true;
unset($params['isZentrunkRequest']);
Expand All @@ -247,6 +250,7 @@ public function fetch($uri, $params)
public function update($uri, $params)
{
$url = NULL;
static::$isLookupRequest = false; // Safe to set false as lookup never uses POST
$isCallInsightsRequest = FALSE;
if (array_key_exists("isCallInsightsRequest", $params)) {
$isCallInsightsRequest = TRUE;
Expand Down Expand Up @@ -319,6 +323,7 @@ public function getPhlorunner($uri, $params)
*/
public function delete($uri, $params)
{
static::$isLookupRequest = false; // Safe to set false as lookup never uses DELETE
if (array_key_exists("isVoiceRequest", $params)) {
static::$isVoiceRequest = true;
unset($params['isVoiceRequest']);
Expand Down

0 comments on commit f3091b4

Please sign in to comment.