Skip to content

Commit 3c8fa7c

Browse files
committed
fixing
1 parent 7b9e62b commit 3c8fa7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

YahooOAuth2.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function fetch($url,$postdata="",$auth="",$headers="") {
1414
$curl = curl_init($url);
1515
if($postdata) {
1616
curl_setopt($curl, CURLOPT_POST, true);
17-
curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata);
17+
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($postdata));
1818
}
1919
else {
2020
curl_setopt($curl, CURLOPT_POST, false);

0 commit comments

Comments
 (0)