lib/zold/http.rb in zold-0.10.21 vs lib/zold/http.rb in zold-0.10.22
- old
+ new
@@ -48,20 +48,20 @@
def get
http = Net::HTTP.new(@uri.host, @uri.port)
http.read_timeout = 5
path = @uri.path
path += '?' + @uri.query if @uri.query
- return http.request_get(path, headers)
+ http.request_get(path, headers)
rescue StandardError => e
Error.new(e)
end
def put(body)
http = Net::HTTP.new(@uri.host, @uri.port)
http.read_timeout = 60
path = @uri.path
path += '?' + @uri.query if @uri.query
- return http.request_put(
+ http.request_put(
path, body,
headers.merge(
'Content-Type': 'text/plain',
'Content-Length': body.length.to_s
)