Skip to content

Commit f404ea2

Browse files
author
Jason Smale
committed
Merge pull request #38 from vbuck/master
Set raw body also for PUT requests
2 parents 3473f65 + 519fc48 commit f404ea2

File tree

1 file changed

+2
-2
lines changed
  • src/app/code/community/Zendesk/Zendesk/Model/Api

1 file changed

+2
-2
lines changed

src/app/code/community/Zendesk/Zendesk/Model/Api/Abstract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected function _call($endpoint, $params = null, $method = 'GET', $data = nul
5151
Mage::getStoreConfig('zendesk/general/password')
5252
);
5353

54-
if($method == 'POST') {
54+
if($method == 'POST' || $method == 'PUT') {
5555
$client->setRawData(json_encode($data), 'application/json');
5656
}
5757

@@ -87,4 +87,4 @@ protected function _call($endpoint, $params = null, $method = 'GET', $data = nul
8787

8888
return $body;
8989
}
90-
}
90+
}

0 commit comments

Comments
 (0)