Fix URI in batched request to allow query parameters

This commit is contained in:
Steven Bazyl committed 2013-02-15 13:13:58 -08:00
1 parent f421551018
commit ef4c5c1f2f
2 files changed
+10 -1

No files matched your search

+1 -1
View File
@@ -286,7 +286,7 @@ module Google
# the serialized request
def serialize_call(call_id, call)
method, uri, headers, body = call.to_http_request
request = "#{method.to_s.upcase} #{Addressable::URI.parse(uri).path} HTTP/1.1"
request = "#{method.to_s.upcase} #{Addressable::URI.parse(uri).request_uri} HTTP/1.1"
headers.each do |header, value|
request << "\r\n%s: %s" % [header, value]
end