lib/buffer/core.rb in buffer-0.1.2 vs lib/buffer/core.rb in buffer-0.1.3

- old
+ new

@@ -7,21 +7,21 @@ private def get(path, options = {}) options.merge!(auth_query) - response = @connection.get do |req| + response = connection.get do |req| req.url path.remove_leading_slash req.params = options end interpret_response(response) end def post(path, options = {}) params = merge_auth_token_and_query(options) params.merge!(options) - response = @connection.post do |req| + response = connection.post do |req| req.url path.remove_leading_slash req.headers['Content-Type'] = "application/x-www-form-urlencoded" req.body = options[:body] req.params = params end