SamSaffron/MiniProfiler — pull request #80 by rtomayko (2012-09-30 06:46:54+00:00)
Title: Set User in result page struct

The top-level `'User'` attribute in the result JSON is set to `'unknown user'` in `PageTimerStruct` and never updated to a real value anywhere that I can see. It's useful to have a valid value here for troubleshooting issues with users stomping and stealing each other's results.

Also uses the already calculated value to prevent creating a new `Rack::Request` each time the user is needed as happens with the default user provider.

This is just something I was playing around with while troubleshooting and figured I'd send it over. No biggie if it isn't interesting to you.