From ebafd19d8d2708a2f1f0be8183eacf74b3a0bce8 Mon Sep 17 00:00:00 2001 From: heretree Date: Tue, 4 Aug 2015 09:46:05 +0800 Subject: [PATCH] Update RollingCurl.php add the http_build_query function handle Multidimensional arrays while setting postdata --- src/RollingCurl/RollingCurl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RollingCurl/RollingCurl.php b/src/RollingCurl/RollingCurl.php index bdd8f4c..a3487a6 100644 --- a/src/RollingCurl/RollingCurl.php +++ b/src/RollingCurl/RollingCurl.php @@ -337,7 +337,7 @@ private function prepareRequestOptions(Request $request) // posting data w/ this request? if ($request->getPostData()) { $options[CURLOPT_POST] = 1; - $options[CURLOPT_POSTFIELDS] = $request->getPostData(); + $options[CURLOPT_POSTFIELDS] = http_build_query($request->getPostData()); } // if the request has headers, use those, or if there are global headers, use those