Permalink
Browse files

Update ruby/store.rb

  • Loading branch information...
1 parent d34ff46 commit 5b58f940360def8400b4bf2e7758f68d92f6c36f @Ventata committed Aug 10, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −5 ruby/store.rb
View
@@ -29,7 +29,7 @@ def self.create(apiKey,info) #creates a new store at ventata.com
http.use_ssl = true
request.content_type = 'application/json'
request.body = jsondata.to_s
- #request["Accept"] = 'application/json'
+ request["Accept"] = 'application/json'
response=http.start do |h|
h.request(request)
end
@@ -50,7 +50,7 @@ def self.modify(apiKey,info) #modify an exiting store by store Id
http.use_ssl = true
request.content_type = 'application/json'
request.body = jsondata.to_s
- #request["Accept"] = 'application/json'
+ request["Accept"] = 'application/json'
response=http.start do |h|
h.request(request)
end
@@ -84,9 +84,7 @@ def self.all(apiKey) #Retrieved all store data
request = Net::HTTP::Get.new(url.request_uri)
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
- request.content_type = 'application/json'
-
- #request["Accept"] = 'application/json'
+ request["Accept"] = 'application/json'
response=http.start do |h|
h.request(request)
end

0 comments on commit 5b58f94

Please sign in to comment.