From 4aa6b7c43a973af012f7bf6aae50313de9f62aa6 Mon Sep 17 00:00:00 2001 From: dtynn Date: Wed, 23 Apr 2014 10:48:53 +0800 Subject: [PATCH] fixed #71 --- qiniu/http.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qiniu/http.php b/qiniu/http.php index 5016d943..87314b81 100644 --- a/qiniu/http.php +++ b/qiniu/http.php @@ -137,6 +137,8 @@ function Qiniu_Client_do($req) // => ($resp, $error) $body = $req->Body; if (!empty($body)) { $options[CURLOPT_POSTFIELDS] = $body; + } else { + $options[CURLOPT_POSTFIELDS] = ""; } curl_setopt_array($ch, $options); $result = curl_exec($ch);