lib/ruby_odata/service.rb in ruby_odata-0.1.2 vs lib/ruby_odata/service.rb in ruby_odata-0.1.3

- old
+ new

@@ -435,10 +435,14 @@ # Tests for and extracts the next href of a partial def extract_partial(doc) next_links = doc.xpath('//atom:link[@rel="next"]', @ds_namespaces) @has_partial = next_links.any? - @next_uri = next_links[0]['href'] if @has_partial + if @has_partial + uri = Addressable::URI.parse(next_links[0]['href']) + uri.query_values = uri.query_values.merge @additional_params unless @additional_params.empty? + @next_uri = uri.to_s + end end def handle_partial if @next_uri result = RestClient::Resource.new(@next_uri, @rest_options).get