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:
parent
bdc0ed1cd7
commit
8f2c4919cc
1 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue