lib/totter/client.rb in totter-0.2.1 vs lib/totter/client.rb in totter-0.2.2

- old
+ new

@@ -81,10 +81,10 @@ request['Authorization'] = "Bearer #{self.access_token}" if authenticated? request['X-Seesaw-Client-Token'] = @client_token if @client_token request['Content-Type'] = 'application/json' # Add params as JSON if they exist - request.body = MultiJson.dump(params) if method == :post and params + request.body = MultiJson.dump(params) if [:post, :put].include?(method) and params # Request response = http.request(request) # Check for errors