lib/mixpanel/tracker.rb in mixpanel-4.0.8 vs lib/mixpanel/tracker.rb in mixpanel-4.0.9

- old
+ new

@@ -61,11 +61,11 @@ def post_request(url, data, async) if async send_async(url, data) else - Net::HTTP.post_form(URI.parse(url), data) + Net::HTTP.post_form(::URI.parse(url), data) end end def parse_response(response) if response.respond_to?(:body) @@ -77,10 +77,10 @@ def send_async(url, data) w = Mixpanel::Tracker.worker begin url << "\n" - w.write JSON.dump(data.merge(_mixpanel_url: url)) + w.write JSON.dump(data.merge(:_mixpanel_url => url)) 1 rescue Errno::EPIPE => e Mixpanel::Tracker.dispose_worker w 0 end