Skip to content

Commit

Permalink
Call Cloud Search API with multiple querystring values
Browse files Browse the repository at this point in the history
Faraday re-parses the URI provided to it, so make sure it is using the
flat parameters setting.

[fixes googleapis#450]
  • Loading branch information
blowmage committed Dec 9, 2015
1 parent 3da8e9a commit 8bd0437
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/gcloud/search/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class APIClient #:nodoc:
##
# Creates a new APIClient instance.
def initialize _options
@connection = Faraday.default_connection
@connection = Faraday.new request: {
params_encoder: Faraday::FlatParamsEncoder }
end

def discovered_api name, version
Expand Down

0 comments on commit 8bd0437

Please sign in to comment.