summaryrefslogtreecommitdiffstats
path: root/php_http_client/client.php
diff options
context:
space:
mode:
authorElmer Thomas <elmer@thinkingserious.com>2016-03-19 10:51:09 -0700
committerElmer Thomas <elmer@thinkingserious.com>2016-03-19 10:51:09 -0700
commitaf6fd06aa21cebb7ac601abfc130db137bb705e5 (patch)
tree71bb76940ec17c9da6435113888ba3898f6122be /php_http_client/client.php
parent2d1091d3625d0a063880b6f6e616c00c6dd2547d (diff)
downloadphp-http-client-af6fd06aa21cebb7ac601abfc130db137bb705e5.zip
php-http-client-af6fd06aa21cebb7ac601abfc130db137bb705e5.tar.gz
php-http-client-af6fd06aa21cebb7ac601abfc130db137bb705e5.tar.bz2
Added Config
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);