Parent

Addressable::URI

fix `normalized_query` by sorting query key-value pairs (rejected: github.com/sporkmonger/addressable/issues/28)

Public Instance Methods

normalized_query() click to toggle source
# File lib/faraday_middleware/addressable_patch.rb, line 10
def normalized_query
  fresh = @normalized_query.nil?
  query = normalized_query_without_ordering_fix
  if query && fresh
    @normalized_query = query.split('&', -1).sort_by {|q| q[0..(q.index('=')||-1)] }.join('&')
  else
    query
  end
end
normalized_query_without_ordering_fix() click to toggle source
Alias for: normalized_query

[Validate]

Generated with the Darkfish Rdoc Generator 2.