diff --git a/src/main/resources/php/Swagger.mustache b/src/main/resources/php/Swagger.mustache index 0c3836a75eb..ae3f29ed560 100644 --- a/src/main/resources/php/Swagger.mustache +++ b/src/main/resources/php/Swagger.mustache @@ -85,7 +85,6 @@ class APIClient { curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $postData); } else if ($method == self::$PUT) { - $json_data = json_encode($postData); curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "PUT"); curl_setopt($curl, CURLOPT_POSTFIELDS, $postData); } else if ($method == self::$DELETE) {