Skip to content

Commit aa34d11

Browse files
committed
Merge pull request #73 from dtynn/fix/71
fixed #71
2 parents 3cc4f0b + 4aa6b7c commit aa34d11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

qiniu/http.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ function Qiniu_Client_do($req) // => ($resp, $error)
137137
$body = $req->Body;
138138
if (!empty($body)) {
139139
$options[CURLOPT_POSTFIELDS] = $body;
140+
} else {
141+
$options[CURLOPT_POSTFIELDS] = "";
140142
}
141143
curl_setopt_array($ch, $options);
142144
$result = curl_exec($ch);

0 commit comments

Comments
 (0)