Skip to content

Commit 3ffa17c

Browse files
author
wesley wong
committed
address open uri deperecation warning
1 parent 6afb1ab commit 3ffa17c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/contentstack/api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def self.send_request(path, q=nil)
5454
query = "?" + q.to_query
5555
# puts "Request URL:- #{@host}#{@api_version}#{path}#{query} \n\n"
5656

57-
ActiveSupport::JSON.decode(open("#{@host}#{@api_version}#{path}#{query}",
57+
ActiveSupport::JSON.decode(URI.open("#{@host}#{@api_version}#{path}#{query}",
5858
"api_key" => @api_key,
5959
"access_token"=> @access_token,
6060
"user_agent"=> "ruby-sdk/#{Contentstack::VERSION}",

0 commit comments

Comments
 (0)