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

Removed leftover block parameter from http as it is not needed anymore.

This commit is contained in:
John Nunemaker 2008-07-28 10:56:19 -04:00
parent c97b1448ed
commit 88501f20f6

View file

@ -28,7 +28,7 @@ module HTTParty
@auth = {:username => u, :password => p}
end
def http(&block)
def http
if @http.blank?
uri = URI.parse(base_uri)
@http = Net::HTTP.new(uri.host, uri.port)