Skip to content

Commit 6e00fea

Browse files
committed
Call Cloud Search API with multiple querystring values
Faraday re-parses the URI provided to it, so make sure it is using the flat parameters setting. [fixes #450]
1 parent 98537fb commit 6e00fea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/gcloud/search/api_client.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ class APIClient #:nodoc:
2828
##
2929
# Creates a new APIClient instance.
3030
def initialize _options
31-
@connection = Faraday.default_connection
31+
@connection = Faraday.new request: {
32+
params_encoder: Faraday::FlatParamsEncoder }
3233
end
3334

3435
def discovered_api name, version

0 commit comments

Comments
 (0)