zevarito / mixpanel

Simple lib to track events in Mixpanel service. It can be used in any rack based framework.
MIT License
273 stars 84 forks source link

Middleware makes send_file return empty files #16

Closed xxx closed 12 years ago

xxx commented 13 years ago

Like the title says, adding the middleware makes all of our send_file calls return 0 byte files. Removing the middleware makes things work again.

I've attempted to insert it at different points of the middleware stack with no success.

zevarito commented 13 years ago

Can you tell me more about your stack so I can try to reproduce it?

xxx commented 13 years ago

Sure - We're on Rails 3.0.10 w/ Ruby 1.9.2-p180. The issue is repeatable in every environment, including dev and test. Please let me know if there's any more stack info you need.

xxx commented 13 years ago

Also, we're using unicorn for our app server.

zevarito commented 13 years ago

Hi,

Sorry for the delay, just checking if you still are running with this issue, I may have a few hours to start to work on it and just want to be sure.

Thanks.

xxx commented 13 years ago

yes, this is still happening with v1.0.0. Using ruby 1.9.2-p290 now also.

zevarito commented 12 years ago

Merged, thanks for the fix!