We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6afb1ab commit 3ffa17cCopy full SHA for 3ffa17c
lib/contentstack/api.rb
@@ -54,7 +54,7 @@ def self.send_request(path, q=nil)
54
query = "?" + q.to_query
55
# puts "Request URL:- #{@host}#{@api_version}#{path}#{query} \n\n"
56
57
- ActiveSupport::JSON.decode(open("#{@host}#{@api_version}#{path}#{query}",
+ ActiveSupport::JSON.decode(URI.open("#{@host}#{@api_version}#{path}#{query}",
58
"api_key" => @api_key,
59
"access_token"=> @access_token,
60
"user_agent"=> "ruby-sdk/#{Contentstack::VERSION}",
0 commit comments