Permalink
Browse files

comment on multi parameters workaround

  • Loading branch information...
1 parent 71093eb commit badaa07d291eec8684feffc89f625716ca6dfe04 Leandro Oniszczuk committed Aug 19, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 Indextank/Api.php
View
@@ -74,7 +74,11 @@ public function api_call($method, $url, $params = array(), $http_options = array
{
if ($method == "GET" || $method == "DELETE") {
$args = http_build_query($params);
+
+ // remove the php special encoding of parameters
+ // see http://www.php.net/manual/en/function.http-build-query.php#78603
$args = preg_replace('/%5B(?:[0-9]|[1-9][0-9]+)%5D=/', '=', $args);
+
$url .= '?' . $args;
$args = '';
} else {

0 comments on commit badaa07

Please sign in to comment.