Skip to content

Commit

Permalink
Merge pull request #73 from dtynn/fix/71
Browse files Browse the repository at this point in the history
fixed #71
  • Loading branch information
longbai committed Apr 23, 2014
2 parents 3cc4f0b + 4aa6b7c commit aa34d11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qiniu/http.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aa34d11

Please sign in to comment.