summaryrefslogtreecommitdiffstats
path: root/php_http_client/client.php
diff options
context:
space:
mode:
Diffstat (limited to 'php_http_client/client.php')
-rw-r--r--php_http_client/client.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/php_http_client/client.php b/php_http_client/client.php
index cc79505..77ca629 100644
--- a/php_http_client/client.php
+++ b/php_http_client/client.php
@@ -129,7 +129,6 @@ class Client {
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'GET');
break;
case 'post':
- curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'POST');
$request_body = json_encode($request_body);
curl_setopt($curl, CURLOPT_POSTFIELDS, $request_body);