1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

removed uri from http call as it is no longer needed. Changed uri variable to new_uri to better differentiate it from uri method.

This commit is contained in:
John Nunemaker 2009-01-28 13:33:39 -05:00
parent bdc0ed1cd7
commit 8f2c4919cc

View file

@ -20,9 +20,9 @@ module HTTParty
end
def uri
uri = path.relative? ? URI.parse("#{options[:base_uri]}#{path}") : path
uri.query = query_string(uri)
uri
new_uri = path.relative? ? URI.parse("#{options[:base_uri]}#{path}") : path
new_uri.query = query_string(new_uri)
new_uri
end
def format
@ -61,7 +61,7 @@ module HTTParty
end
def perform_actual_request
http(uri).request(@raw_request)
http.request(@raw_request)
end
def get_response #:nodoc: