lib/mixpanel/person.rb in mixpanel-4.0.6 vs lib/mixpanel/person.rb in mixpanel-4.0.7
- old
+ new
@@ -79,11 +79,10 @@
data = build_person_unset request_properties, properties
else
data = build_person action, request_properties, properties
end
- url = "#{options[:url]}?data=#{encoded_data(data)}"
- parse_response request(url, options[:async])
+ parse_response post_request(options[:url], { data: encoded_data(data) }, options[:async])
end
def person_request_properties(request_properties_or_distinct_id)
default = {:token => @token, :ip => ip}
if request_properties_or_distinct_id.respond_to? :to_hash