forked from loafle/openapi-generator-original
Merge pull request #202 from gonimar/patch-1
Unused local variable 'json_data'.
This commit is contained in:
commit
7d05b01a56
@ -85,7 +85,6 @@ class APIClient {
|
|||||||
curl_setopt($curl, CURLOPT_POST, true);
|
curl_setopt($curl, CURLOPT_POST, true);
|
||||||
curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
|
curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
|
||||||
} else if ($method == self::$PUT) {
|
} else if ($method == self::$PUT) {
|
||||||
$json_data = json_encode($postData);
|
|
||||||
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "PUT");
|
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "PUT");
|
||||||
curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
|
curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
|
||||||
} else if ($method == self::$DELETE) {
|
} else if ($method == self::$DELETE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user