You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed a bug which was introduced when switching to http_build_query for
query string encoding where repeated parameters would adopt named indexes.
Library now defaults to omitting numeric indexes, which can be re-enabled with
the `build_indexed_queries` boolean option. Original tests now pass, additional
tests added to verify integrity of regex hack.
Copy file name to clipboardExpand all lines: README.markdown
+1
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ Configurable Options
31
31
`headers` - An associative array of HTTP headers and values to be included in every request.
32
32
`parameters` - An associative array of URL or body parameters to be included in every request.
33
33
`curl_options` - cURL options to apply to every request; anything defined here: https://secure.php.net/manual/en/function.curl-setopt.php. These will override any automatically generated values.
34
+
`build_indexed_queries``(bool)` - `http_build_query` automatically adds an array index to repeated parameters which is not desirable on most systems. Use this option to enable the default behavior. Defaults to `FALSE`.
34
35
`user_agent` - User agent string to use in requests.
35
36
`base_url` - URL to use for the base of each request.
36
37
`format` - Format string is appended to resource on request (extension), and used to determine which decoder to use on response; a request URL like "api.twitter.com/1.1/statuses/user_timeline.json" would be expected to return well-formed JSON.
0 commit comments